summaryrefslogtreecommitdiff
path: root/sw/source/core/crsr/findtxt.cxx
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2015-05-19 13:01:04 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-05-19 14:09:06 +0200
commit995ecbdc903223aca7c4198c6acecbba0500a955 (patch)
tree6ff7baf8b4a80e8ed13c0059551c4b7905d64ab1 /sw/source/core/crsr/findtxt.cxx
parentd82c035953347a19bbbc5eda61e1c9389bf3b73b (diff)
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
Diffstat (limited to 'sw/source/core/crsr/findtxt.cxx')
-rw-r--r--sw/source/core/crsr/findtxt.cxx3
1 files changed, 3 insertions, 0 deletions
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;