mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-10 20:04:46 +00:00
Buffer::Spellcheck(): Fix infinite loop when a math inset is met... stupid me!
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30231 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
2f4f246512
commit
5e01b2dfa1
@ -3383,7 +3383,7 @@ int Buffer::spellCheck(DocIterator & from, DocIterator & to,
|
|||||||
for (; from != end; from.forwardPos()) {
|
for (; from != end; from.forwardPos()) {
|
||||||
// We are only interested in text so remove the math CursorSlice.
|
// We are only interested in text so remove the math CursorSlice.
|
||||||
while (from.inMathed())
|
while (from.inMathed())
|
||||||
from.pop_back();
|
from.forwardInset();
|
||||||
to = from;
|
to = from;
|
||||||
if (from.paragraph().spellCheck(from.pos(), to.pos(), wl, suggestions))
|
if (from.paragraph().spellCheck(from.pos(), to.pos(), wl, suggestions))
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user