]> git.lyx.org Git - lyx.git/blobdiff - src/lyxfind.C
* Replace all use of 'slashify_path' with 'internal_path'.
[lyx.git] / src / lyxfind.C
index 479d4771167799f20a9197f5167b4bc79b6f7c2a..769aa2c44c6ec65ba5c2e943be3ad5076fa60872 100644 (file)
@@ -128,7 +128,7 @@ bool findBackwards(DocIterator & cur, MatchString const & match)
 bool findChange(DocIterator & cur)
 {
        for (; cur; cur.forwardChar())
-               if (cur.inTexted() && !cur.paragraph().empty() &&
+               if (cur.inTexted() && cur.pos() != cur.paragraph().size() &&
                    cur.paragraph().lookupChange(cur.pos())
                    != Change::UNCHANGED)
                        return true;