]> git.lyx.org Git - lyx.git/blobdiff - src/Buffer.cpp
Clean-up the code with respect to PassThru insets and layouts.
[lyx.git] / src / Buffer.cpp
index ba77061463c56c7176f0dbf685adb2d8172648e1..15e05177f3bad8d2353b54c0fe3c51fab46aeeb3 100644 (file)
@@ -2364,6 +2364,7 @@ void Buffer::markClean() const
        // if the .lyx file has been saved, we don't need an
        // autosave
        d->bak_clean = true;
+       d->undo_.markDirty();
 }
 
 
@@ -3995,7 +3996,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;
                }