]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetQuotes.cpp
Inset::addToToc(): change signature. Use DocIterator instead of ParConstIterator...
[lyx.git] / src / insets / InsetQuotes.cpp
index c1c1edc3b853830adedcc6701fda03b52709b622..26abda076c8eb81175b3345ec10fe3a3f279b841 100644 (file)
@@ -276,12 +276,10 @@ void InsetQuotes::write(ostream & os) const
 
 void InsetQuotes::read(Lexer & lex)
 {
+       lex.setContext("InsetQuotes::read");
        lex.next();
        parseString(lex.getString());
-       lex.next();
-       if (lex.getString() != "\\end_inset") {
-               lex.printError("Missing \\end_inset at this point");
-       }
+       lex >> "\\end_inset";
 }