]> git.lyx.org Git - features.git/commitdiff
Fix more of bug 5751.
authorRichard Heck <rgheck@comcast.net>
Thu, 19 Feb 2009 04:42:30 +0000 (04:42 +0000)
committerRichard Heck <rgheck@comcast.net>
Thu, 19 Feb 2009 04:42:30 +0000 (04:42 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28555 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/InsetNewline.cpp
src/insets/InsetNewpage.cpp

index 02c976f34213e0671f0e9e54e179a0b31f2081a5..f5670fb44c2b49fb508934ee1e1b958c5c14ec12 100644 (file)
@@ -61,7 +61,6 @@ void InsetNewlineParams::read(Lexer & lex)
                kind = InsetNewlineParams::LINEBREAK;
        else
                lex.printError("Unknown kind: `$$Token'");
-       lex >> "\\end_inset";
 }
 
 
@@ -75,6 +74,7 @@ void InsetNewline::write(ostream & os) const
 void InsetNewline::read(Lexer & lex)
 {
        params_.read(lex);
+       lex >> "\\end_inset";
 }
 
 
index c2c78251f9b295c5447dd80b56d0529c76cf7db0..839ef685dddad8ab7e67b4f0c6f3c4074a832036 100644 (file)
@@ -79,8 +79,6 @@ void InsetNewpageParams::read(Lexer & lex)
                kind = InsetNewpageParams::CLEARDOUBLEPAGE;
        else
                lex.printError("Unknown kind");
-
-       lex >> "\\end_inset";
 }
 
 
@@ -94,6 +92,7 @@ void InsetNewpage::write(ostream & os) const
 void InsetNewpage::read(Lexer & lex)
 {
        params_.read(lex);
+       lex >> "\\end_inset";
 }