]> git.lyx.org Git - lyx.git/commitdiff
Buffer::Spellcheck(): Fix infinite loop when a math inset is met... stupid me!
authorAbdelrazak Younes <younes@lyx.org>
Mon, 22 Jun 2009 21:43:39 +0000 (21:43 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Mon, 22 Jun 2009 21:43:39 +0000 (21:43 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30231 a592a061-630c-0410-9148-cb99ea01b6c8

src/Buffer.cpp

index 3c8e878c0b1ed2e74780660ac0d774c91ca49ab3..627159826a4a5ea0b9b2b3e0f1292fd1d05b6311 100644 (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;