From 5a669fa62bdd5446e4a025cc9b57d8a1a9eebc59 Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Tue, 4 Feb 2014 10:37:29 +0100 Subject: [PATCH] Style --- src/frontends/qt4/GuiSearch.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/frontends/qt4/GuiSearch.cpp b/src/frontends/qt4/GuiSearch.cpp index e83cf00e4e..7124647380 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()); - GuiView & lv = *const_cast(&lyxview()); - - DocIterator cur_orig(bv->cursor()); if (!bv->cursor().result().dispatched()) { + GuiView & lv = *const_cast(&lyxview()); + DocIterator cur_orig(bv->cursor()); docstring q; if (forward) q = _("End of file reached while searching forward.\n" -- 2.39.2