]> git.lyx.org Git - features.git/blobdiff - src/lyxfind.C
Fix clipboard/selection encoding
[features.git] / src / lyxfind.C
index 559d7ccbc6fa39a17d855aaa8a1a13491597d1f6..1b0b299e4ce58968c43588e3cb9c6ff962136157 100644 (file)
@@ -206,7 +206,7 @@ bool stringSelected(BufferView * bv, string const & searchstr,
        // if nothing selected or selection does not equal search
        // string search and select next occurance and return
        string const & str1 = searchstr;
-       string const str2 = bv->cursor().selectionAsString(false);
+       string const str2 = lyx::to_utf8(bv->cursor().selectionAsString(false));
        if ((cs && str1 != str2) || lowercase(str1) != lowercase(str2)) {
                find(bv, searchstr, cs, mw, fw);
                return false;