]> git.lyx.org Git - lyx.git/blobdiff - src/lyxfind.C
add missing writeNormal() methods to some insets
[lyx.git] / src / lyxfind.C
index 03de70a4695de83e917cf170289c7cedf6558da2..e5d0f75afbc6eb18d592aeb27ad6b1153d604f2f 100644 (file)
@@ -80,10 +80,10 @@ int LyXReplace(BufferView * bv,
        string str2;
        if (casesens) {
                str1 = searchstr;
-               str2 = text->selectionAsString(bv->buffer());
+               str2 = text->selectionAsString(bv->buffer(), false);
        } else {
                str1 = lowercase(searchstr);
-               str2 = lowercase(text->selectionAsString(bv->buffer()));
+               str2 = lowercase(text->selectionAsString(bv->buffer(), false));
        }
        if (str1 != str2) {
                if (!LyXFind(bv, searchstr, fw, false, casesens, matchwrd) ||
@@ -104,7 +104,7 @@ int LyXReplace(BufferView * bv,
                bv->update(bv->getLyXText(), BufferView::SELECT|BufferView::FITCUR|BufferView::CHANGE);
                ++replace_count;
                if (!once)
-                 found = LyXFind(bv, searchstr, fw, false, casesens, matchwrd);
+                       found = LyXFind(bv, searchstr, fw, false, casesens, matchwrd);
        } while (!once && replaceall && found);
    
        if (bv->focus())