mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +00:00
Avoid an infinite loop
When pasting "\big" without any following delimiter, avoid processing the same token again and again. For unknown reasons, the delim docstring turns out to always be not empty: even when it simply contains a '0' (no delimiter follows), its length is 1. Fixes bug #11027.
This commit is contained in:
parent
8f86b72cf4
commit
8e8b3f6104
@ -2000,6 +2000,9 @@ bool Parser::parse1(InsetMathGrid & grid, unsigned flags,
|
||||
new InsetMathBig(t.cs(), delim)));
|
||||
else {
|
||||
cell->push_back(createInsetMath(t.cs(), buf));
|
||||
// For some reason delim.empty()
|
||||
// is always false here
|
||||
if (delim.at(0))
|
||||
putback();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user