summaryrefslogtreecommitdiff
path: root/svl/source/items
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-05-28 13:23:52 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-05-28 13:25:12 +0100
commit05e2fd162ef86ebe4ea2a2a679cabeae33e844f0 (patch)
tree08aa4bbfd2962bdcef7aa0024293e3b975efa119 /svl/source/items
parent7b9b57b41936eea673eb678407ed817856ba0912 (diff)
Related: fdo#79142 make SetName default to Reindexing
Change-Id: I408042bc7bf1a5a955203d65d2c68ebf9527b9b5
Diffstat (limited to 'svl/source/items')
-rw-r--r--svl/source/items/style.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/svl/source/items/style.cxx b/svl/source/items/style.cxx
index 175f7ceee101..40e8eeec207f 100644
--- a/svl/source/items/style.cxx
+++ b/svl/source/items/style.cxx
@@ -155,7 +155,7 @@ const OUString& SfxStyleSheetBase::GetName() const
return aName;
}
-bool SfxStyleSheetBase::SetName( const OUString& rName )
+bool SfxStyleSheetBase::SetName(const OUString& rName, bool bReIndexNow)
{
if(rName.isEmpty())
return false;
@@ -178,6 +178,8 @@ bool SfxStyleSheetBase::SetName( const OUString& rName )
if ( aFollow == aName )
aFollow = rName;
aName = rName;
+ if (bReIndexNow)
+ pPool->Reindex();
pPool->SetSearchMask(eTmpFam, nTmpMask);
pPool->Broadcast( SfxStyleSheetHintExtended(
SFX_STYLESHEET_MODIFIED, aOldName, *this ) );