This commit is contained in:
Juergen Spitzmueller 2014-02-04 10:37:29 +01:00
parent eb219e1130
commit 5a669fa62b

View File

@ -120,15 +120,15 @@ void GuiSearch::replaceallClicked()
}
void GuiSearch::wrap_dispatch(const FuncRequest & func, bool forward) {
void GuiSearch::wrap_dispatch(const FuncRequest & func, bool forward)
{
dispatch(func);
BufferView * bv = const_cast<BufferView *>(bufferview());
GuiView & lv = *const_cast<GuiView *>(&lyxview());
DocIterator cur_orig(bv->cursor());
if (!bv->cursor().result().dispatched()) {
GuiView & lv = *const_cast<GuiView *>(&lyxview());
DocIterator cur_orig(bv->cursor());
docstring q;
if (forward)
q = _("End of file reached while searching forward.\n"