summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Raykowski <raykowj@gmail.com>2018-02-12 23:43:00 -0900
committerThorsten Behrens <Thorsten.Behrens@CIB.de>2018-02-14 05:12:08 +0100
commiteb975197b62204062393979e33438a3a4e2d27c1 (patch)
treec8ffd19e953d5afb70a7645419ff922d3de13595
parent53551d49d3be2301985f2cf2d8bb23ff374ecfd1 (diff)
tdf#115620 Prevent "Find Text" changing "Navigate By"
Change-Id: I46ab436e98f0d24e51277f22b2a707dfd5e2937c Reviewed-on: https://gerrit.libreoffice.org/49690 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
-rw-r--r--sw/source/uibase/uiview/viewsrch.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/sw/source/uibase/uiview/viewsrch.cxx b/sw/source/uibase/uiview/viewsrch.cxx
index f377f35acdfe..d2932070dc89 100644
--- a/sw/source/uibase/uiview/viewsrch.cxx
+++ b/sw/source/uibase/uiview/viewsrch.cxx
@@ -198,6 +198,7 @@ void SwView::ExecSearch(SfxRequest& rReq)
case FN_REPEAT_SEARCH:
case FID_SEARCH_NOW:
{
+ sal_uInt16 nMoveType = SwView::GetMoveType();
{
if(FID_SEARCH_NOW == nSlot && !rReq.IsAPI())
SwView::SetMoveType(NID_SRCH_REP);
@@ -396,6 +397,7 @@ void SwView::ExecSearch(SfxRequest& rReq)
}
#endif
m_bFound = false;
+ SwView::SetMoveType(nMoveType);
return;
}
@@ -425,6 +427,7 @@ void SwView::ExecSearch(SfxRequest& rReq)
rReq.Done();
m_eLastSearchCommand = m_pSrchItem->GetCommand();
+ SwView::SetMoveType(nMoveType);
}
break;
case FID_SEARCH_SEARCHSET: