From 790376adbc62be83e0dcbfe149caa1a12834da0f Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Sat, 4 Apr 2009 14:06:08 +0000 Subject: [PATCH] Backport r28544, fixing 5751. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29086 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/InsetNewline.cpp | 2 +- src/insets/InsetNewpage.cpp | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/insets/InsetNewline.cpp b/src/insets/InsetNewline.cpp index 5220568d56..ca55cf2ec3 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 fae6d699a4..231c7981a4 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"; }