]> git.lyx.org Git - lyx.git/commit
Avoid an infinite loop
authorEnrico Forestieri <forenr@lyx.org>
Fri, 9 Feb 2018 22:35:33 +0000 (23:35 +0100)
committerEnrico Forestieri <forenr@lyx.org>
Sat, 10 Feb 2018 09:36:48 +0000 (10:36 +0100)
commite43bf58223b5b4207211521b417c2ebf7c6b2fa3
tree1539d5869c364ff3d1bea853856cf8eb0aaa314f
parent2d923e4243d02b17da6f103c7cc0d2cee8d6caf5
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.

(cherry picked from commit 8e8b3f610495493f4f1bff3f4a0ff48f4eab4539)
src/mathed/MathParser.cpp