Kaydet (Commit) 995ecbdc authored tarafından Miklos Vajna's avatar Miklos Vajna

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
üst d82c0359
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment