]> git.lyx.org Git - lyx.git/blobdiff - src/Buffer.cpp
Implement LFUN_SPELLING_REMOVE (patch from switt)
[lyx.git] / src / Buffer.cpp
index ba77061463c56c7176f0dbf685adb2d8172648e1..9063b0ed233d2b1879f722a5c256facb75a28d8e 100644 (file)
@@ -3995,7 +3995,8 @@ int Buffer::spellCheck(DocIterator & from, DocIterator & to,
                if (from == end)
                        break;
                to = from;
-               if (from.paragraph().spellCheck(from.pos(), to.pos(), wl, suggestions)) {
+               SpellChecker::Result res = from.paragraph().spellCheck(from.pos(), to.pos(), wl, suggestions);
+               if (SpellChecker::misspelled(res)) {
                        word_lang = wl;
                        break;
                }