summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-05-05 12:47:46 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-05-05 18:18:07 +0200
commit8a9bbd316fd0b798ce60482f904927010ea9fcc5 (patch)
tree51164492871fc009cc206ddf6838c00c75f6a4af /svl
parent823a224843ee78a33f2d346c02344a88a77b2758 (diff)
don't need to save and restore the search mask if it doesn't get changed
Change-Id: I19ee6a916017cb49092a2b74bc2bfd9b99b8c72d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93489 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svl')
-rw-r--r--svl/source/items/style.cxx7
1 files changed, 1 insertions, 6 deletions
diff --git a/svl/source/items/style.cxx b/svl/source/items/style.cxx
index ef1b7078b3f6..1a747985cef7 100644
--- a/svl/source/items/style.cxx
+++ b/svl/source/items/style.cxx
@@ -172,11 +172,6 @@ bool SfxStyleSheetBase::SetName(const OUString& rName, bool bReIndexNow)
if ( pOther && pOther != this )
return false;
- SfxStyleFamily eTmpFam = m_pPool->GetSearchFamily();
- SfxStyleSearchBits nTmpMask = m_pPool->GetSearchMask();
-
- m_pPool->SetSearchMask(nFamily);
-
if ( !aName.isEmpty() )
m_pPool->ChangeParent(aName, rName, nFamily, false);
@@ -185,7 +180,7 @@ bool SfxStyleSheetBase::SetName(const OUString& rName, bool bReIndexNow)
aName = rName;
if (bReIndexNow)
m_pPool->Reindex();
- m_pPool->SetSearchMask(eTmpFam, nTmpMask);
+
m_pPool->Broadcast( SfxStyleSheetModifiedHint( aOldName, *this ) );
}
return true;