mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Avoid loop in math parsing function
This commit is contained in:
parent
0d50a8417f
commit
003bbd3483
@ -663,7 +663,13 @@ docstring Encodings::convertLaTeXCommands(docstring const & str, bool const for_
|
|||||||
if (cmd.empty())
|
if (cmd.empty())
|
||||||
break;
|
break;
|
||||||
// go on ...
|
// go on ...
|
||||||
|
docstring oldrem = rem;
|
||||||
ret += fromLaTeXCommand(from_ascii("\\") + cmd, MATH_CMD, termination, rem);
|
ret += fromLaTeXCommand(from_ascii("\\") + cmd, MATH_CMD, termination, rem);
|
||||||
|
if (oldrem == rem) {
|
||||||
|
// Result unchanged, output
|
||||||
|
ret += rem;
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
mret = docstring();
|
mret = docstring();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user