]> git.lyx.org Git - features.git/commitdiff
Style
authorJuergen Spitzmueller <spitz@lyx.org>
Tue, 4 Feb 2014 09:37:29 +0000 (10:37 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Tue, 4 Feb 2014 09:37:29 +0000 (10:37 +0100)
src/frontends/qt4/GuiSearch.cpp

index e83cf00e4e1faffb055ab7c3cb074975acb5b9b4..712464738093463ff100f58c69f572d9717897c4 100644 (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"