mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Fix bug #10863.
This commit is contained in:
parent
652ca5f578
commit
1febf443a7
@ -1037,10 +1037,10 @@ bool Parser::parse1(InsetMathGrid & grid, unsigned flags,
|
||||
else if (t.cat() == catComment) {
|
||||
docstring s;
|
||||
while (good()) {
|
||||
Token const & t = getToken();
|
||||
if (t.cat() == catNewline)
|
||||
Token const & tt = getToken();
|
||||
if (tt.cat() == catNewline)
|
||||
break;
|
||||
s += t.asInput();
|
||||
s += tt.asInput();
|
||||
}
|
||||
cell->push_back(MathAtom(new InsetMathComment(buf, s)));
|
||||
skipSpaces();
|
||||
@ -1774,7 +1774,7 @@ bool Parser::parse1(InsetMathGrid & grid, unsigned flags,
|
||||
docstring s;
|
||||
int num_tokens = 0;
|
||||
while (true) {
|
||||
Token const & t = getToken();
|
||||
Token const & tt = getToken();
|
||||
++num_tokens;
|
||||
if (!good()) {
|
||||
s.clear();
|
||||
@ -1782,7 +1782,7 @@ bool Parser::parse1(InsetMathGrid & grid, unsigned flags,
|
||||
putback();
|
||||
break;
|
||||
}
|
||||
s += t.character();
|
||||
s += tt.character();
|
||||
if (isValidLength(to_utf8(s)))
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user