]> git.lyx.org Git - features.git/commitdiff
Spellchecker Bug fix: found word was not filled in.
authorAbdelrazak Younes <younes@lyx.org>
Sat, 4 Jul 2009 18:00:01 +0000 (18:00 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Sat, 4 Jul 2009 18:00:01 +0000 (18:00 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30351 a592a061-630c-0410-9148-cb99ea01b6c8

src/Buffer.cpp

index 627159826a4a5ea0b9b2b3e0f1292fd1d05b6311..c9dadd0837744e35f4243fc54c49d6024c53b4e2 100644 (file)
@@ -3385,8 +3385,10 @@ int Buffer::spellCheck(DocIterator & from, DocIterator & to,
                while (from.inMathed())
                        from.forwardInset();
                to = from;
-               if (from.paragraph().spellCheck(from.pos(), to.pos(), wl, suggestions))
+               if (from.paragraph().spellCheck(from.pos(), to.pos(), wl, suggestions)) {
+                       word_lang = wl;
                        break;
+               }
                from = to;
                ++progress;
        }