X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fcontrollers%2FControlSearch.C;h=7315d7139bc2702070a2ee5227cb3c7140c95272;hb=5bc3841d4170e068a561c265af9bf0bce65128d0;hp=5b6305d8efb48e2e7db90f0ad353e56b53924706;hpb=d1182f17daa1a164d9527ccbe6500840d7ac6bc8;p=lyx.git diff --git a/src/frontends/controllers/ControlSearch.C b/src/frontends/controllers/ControlSearch.C index 5b6305d8ef..7315d7139b 100644 --- a/src/frontends/controllers/ControlSearch.C +++ b/src/frontends/controllers/ControlSearch.C @@ -28,6 +28,7 @@ #include "debug.h" #include "gettext.h" #include "BufferView.h" +#include "support/lstrings.h" using Liason::setMinibuffer; using SigC::slot; @@ -46,8 +47,8 @@ ControlSearch::ControlSearch(LyXView & lv, Dialogs & d) void ControlSearch::find(string const & search, bool casesensitive, bool matchword, bool forward) const { - bool const found = LyXFind(lv_.view(), search, casesensitive, - matchword, forward); + bool const found = LyXFind(lv_.view(), search, + forward, false, casesensitive, matchword); if (!found) setMinibuffer(&lv_, _("String not found!")); @@ -58,8 +59,8 @@ void ControlSearch::replace(string const & search, string const & replace, bool casesensitive, bool matchword, bool all) const { int const replace_count = LyXReplace(lv_.view(), - search, replace, casesensitive, - matchword, true, all); + search, replace, true, casesensitive, + matchword, all); if (replace_count == 0) { setMinibuffer(&lv_, _("String not found!"));