]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetCaption.cpp
Merge branch 'master' of git.lyx.org:lyx
[lyx.git] / src / insets / InsetCaption.cpp
index ed2120c171273a5ea00ab126b30583eb12f6fc44..b1c4e08d1a4b1a9c0b51763c16c95db3ff32ff61 100644 (file)
@@ -73,18 +73,6 @@ docstring InsetCaption::layoutName() const
 }
 
 
-void InsetCaption::read(Lexer & lex)
-{
-#if 0
-       // We will enably this check again when the compability
-       // code is removed from Buffer::Read (Lgb)
-       lex.setContext("InsetCaption::Read: consistency check");
-       lex >> "Caption";
-#endif
-       InsetText::read(lex);
-}
-
-
 void InsetCaption::cursorPos(BufferView const & bv,
                CursorSlice const & sl, bool boundary, int & x, int & y) const
 {
@@ -209,7 +197,7 @@ bool InsetCaption::getStatus(Cursor & cur, FuncRequest const & cmd,
 {
        switch (cmd.action()) {
 
-       case LFUN_BREAK_PARAGRAPH:
+       case LFUN_PARAGRAPH_BREAK:
                status.setEnabled(false);
                return true;