[Libreoffice-commits] core.git: sw/source
Miklos Vajna
vmiklos at collabora.co.uk
Tue May 19 05:09:36 PDT 2015
sw/source/core/crsr/findtxt.cxx | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit 995ecbdc903223aca7c4198c6acecbba0500a955
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date: Tue May 19 13:01:04 2015 +0200
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
diff --git a/sw/source/core/crsr/findtxt.cxx b/sw/source/core/crsr/findtxt.cxx
index dd1edd2..200d02b 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;
More information about the Libreoffice-commits
mailing list