]> git.lyx.org Git - lyx.git/blobdiff - src/lyxfind.C
fix for compilation with boost 1.32.0
[lyx.git] / src / lyxfind.C
index 4509a1163b8a3f5440568578f92d8e0f34f4ac66..ee0f53dda032a15bf2e5a8480ccd156e8ea70a2d 100644 (file)
@@ -85,10 +85,10 @@ public:
 
                // if necessary, check whether string matches word
                if (mw) {
-                       if (pos > 0 && par.isWord(pos - 1))
+                       if (pos > 0 && par.isLetter(pos - 1))
                                return false;
                        if (pos + lyx::pos_type(size) < parsize
-                           && par.isWord(pos + size));
+                           && par.isLetter(pos + size));
                                return false;
                }
 
@@ -218,7 +218,7 @@ bool stringSelected(BufferView * bv, string const & searchstr,
 
 
 int replace(BufferView * bv, string const & searchstr,
-      string const & replacestr, bool cs, bool mw, bool fw)
+           string const & replacestr, bool cs, bool mw, bool fw)
 {
        if (!searchAllowed(bv, searchstr) || bv->buffer()->isReadonly())
                return 0;