commit 5a669fa62bdd5446e4a025cc9b57d8a1a9eebc59
Author: Juergen Spitzmueller <[email protected]>
Date:   Tue Feb 4 10:37:29 2014 +0100

    Style

diff --git a/src/frontends/qt4/GuiSearch.cpp b/src/frontends/qt4/GuiSearch.cpp
index e83cf00..7124647 100644
--- a/src/frontends/qt4/GuiSearch.cpp
+++ b/src/frontends/qt4/GuiSearch.cpp
@@ -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"

Reply via email to