]> git.lyx.org Git - lyx.git/commitdiff
We really do not want id to change
authorRichard Kimberly Heck <rikiheck@lyx.org>
Tue, 29 Sep 2020 02:20:22 +0000 (22:20 -0400)
committerRichard Kimberly Heck <rikiheck@lyx.org>
Tue, 29 Sep 2020 02:20:22 +0000 (22:20 -0400)
src/Layout.cpp

index 48328cca43c6ba687dd8ccf43be9ed3f9a140deb..f3dfa4aa717f7f9df1a41cc263dde310b2ad7a98 100644 (file)
@@ -1151,8 +1151,10 @@ void Layout::readSpacing(Lexer & lex)
 
 void Layout::readArgument(Lexer & lex, bool validating)
 {
-       string id;
-       lex >> id;
+       if (!lex.next())
+               return;
+       string const id = lex.getString();
+
        bool const itemarg = prefixIs(id, "item:");
        bool const postcmd = prefixIs(id, "post:");
        bool const listpreamble = prefixIs(id, "listpreamble:");