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:
Abdelrazak Younes 2009-06-22 21:43:39 +00:00
parent 2f4f246512
commit 5e01b2dfa1

View File

@ -3383,7 +3383,7 @@ int Buffer::spellCheck(DocIterator & from, DocIterator & to,
for (; from != end; from.forwardPos()) {
// We are only interested in text so remove the math CursorSlice.
while (from.inMathed())
from.pop_back();
from.forwardInset();
to = from;
if (from.paragraph().spellCheck(from.pos(), to.pos(), wl, suggestions))
break;