]> git.lyx.org Git - lyx.git/blobdiff - src/lyxfind.C
Fix bug 886 and others not reported related with the document paper size.
[lyx.git] / src / lyxfind.C
index 1bcf3c398af04cf0f7db3eda4e728b225eb421b3..8fcd49e2689843875dc3730e243d5c621d4c68b9 100644 (file)
@@ -88,7 +88,7 @@ public:
                        if (pos > 0 && par.isLetter(pos - 1))
                                return false;
                        if (pos + lyx::pos_type(size) < parsize
-                           && par.isLetter(pos + size));
+                           && par.isLetter(pos + size))
                                return false;
                }
 
@@ -173,7 +173,7 @@ int replaceAll(BufferView * bv,
        if (!searchAllowed(bv, searchstr) || buf.isReadonly())
                return 0;
 
-       recordUndoFullDocument(bv->cursor());
+       recordUndoFullDocument(bv);
 
        MatchString const match(searchstr, cs, mw);
        int num = 0;