From: Richard Heck Date: Thu, 19 Feb 2009 04:42:30 +0000 (+0000) Subject: Fix more of bug 5751. X-Git-Tag: 2.0.0~7187 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=ae6462af9661fa694f4d127b4c2e32810770072c;p=features.git Fix more of bug 5751. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28555 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/insets/InsetNewline.cpp b/src/insets/InsetNewline.cpp index 02c976f342..f5670fb44c 100644 --- a/src/insets/InsetNewline.cpp +++ b/src/insets/InsetNewline.cpp @@ -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"; } diff --git a/src/insets/InsetNewpage.cpp b/src/insets/InsetNewpage.cpp index c2c78251f9..839ef685dd 100644 --- a/src/insets/InsetNewpage.cpp +++ b/src/insets/InsetNewpage.cpp @@ -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"; }