]> git.lyx.org Git - lyx.git/blobdiff - src/lyxfind.cpp
Delay Spellchecker intanciation until first use.
[lyx.git] / src / lyxfind.cpp
index 5c26645075e128791bd5ec1f4681f57996bb3a7e..1002a01d09cf2f64a13ef9f6b373664b5eb28a71 100644 (file)
@@ -120,7 +120,7 @@ bool findChange(DocIterator & cur, bool next)
        if (!next)
                cur.backwardPos();
        for (; cur; next ? cur.forwardPos() : cur.backwardPos())
-               if (cur.inTexted() && !cur.paragraph().isUnchanged(cur.pos())) {
+               if (cur.inTexted() && cur.paragraph().isChanged(cur.pos())) {
                        if (!next)
                                // if we search backwards, take a step forward
                                // to correctly set the anchor