From 995ecbdc903223aca7c4198c6acecbba0500a955 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Tue, 19 May 2015 13:01:04 +0200 Subject: SwPaM::Find: when no more result in the shape, unmark it So that when the next result is found in the normal Writer text, only that will be selected. Having both shape selection + Writer text selection is confusing. Change-Id: I52d399e7224b472f76d39d93ffc394c2e3107a86 --- sw/source/core/crsr/findtxt.cxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sw') diff --git a/sw/source/core/crsr/findtxt.cxx b/sw/source/core/crsr/findtxt.cxx index dd1edd2a60f3..200d02bdb785 100644 --- a/sw/source/core/crsr/findtxt.cxx +++ b/sw/source/core/crsr/findtxt.cxx @@ -305,8 +305,11 @@ bool SwPaM::Find( const SearchOptions& rSearchOpt, bool bSearchInNotes , utl::Te aSearchItem.SetBackward(!bSrchForward); sal_uInt16 nResult = pSdrView->GetTextEditOutlinerView()->StartSearchAndReplace(aSearchItem); if (!nResult) + { // If not found, end the text edit. pSdrView->SdrEndTextEdit(); + pSdrView->UnmarkAll(); + } else { bFound = true; -- cgit