X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Flyxfr1.C;h=f6d575f7427ea3a3857f5ec10b2c9647a9ea5194;hb=f65b7ff4ab2fe8ad0d9196c231064240e3fde81f;hp=909bf3ff93bd762a8745e331b45a419d61e1bb63;hpb=a30e709a3b315fd675cff7c92b9539e5e0fd7c9c;p=lyx.git diff --git a/src/lyxfr1.C b/src/lyxfr1.C index 909bf3ff93..f6d575f742 100644 --- a/src/lyxfr1.C +++ b/src/lyxfr1.C @@ -82,7 +82,7 @@ void SetSelectionOverLenChars(BufferView * bv, int len) bv->text->sel_cursor = bv->text->cursor; for (int i = 0; i < len; ++i) bv->text->CursorRight(bv); - bv->text->SetSelection(); + bv->text->SetSelection(bv); } @@ -168,7 +168,7 @@ void LyXFindReplace::SearchReplaceAllCB() bv->hideCursor(); // start at top - bv->text->ClearSelection(); + bv->text->ClearSelection(bv); bv->text->CursorTop(bv); int replace_count = 0; @@ -226,7 +226,7 @@ bool LyXFindReplace::SearchCB(bool fForward) // clear the selection (if there is any) bv->toggleSelection(); - bv->text->ClearSelection(); + bv->text->ClearSelection(bv); // set the new selection SetSelectionOverLenChars(bv, iLenSelected);