[LyX/master] We really do not want id to change
Richard Kimberly Heck
rikiheck at lyx.org
Tue Sep 29 01:52:56 UTC 2020
commit 003a267764fb5ba36a6753f74c82c4f9bd2ab7ef
Author: Richard Kimberly Heck <rikiheck at lyx.org>
Date: Mon Sep 28 22:20:22 2020 -0400
We really do not want id to change
---
src/Layout.cpp | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/Layout.cpp b/src/Layout.cpp
index 48328cc..f3dfa4a 100644
--- a/src/Layout.cpp
+++ b/src/Layout.cpp
@@ -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:");
More information about the lyx-cvs
mailing list