diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-05-28 13:23:52 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-05-28 13:26:22 +0100 |
commit | f438d84fd91a7174d748d870854974bc97b35d8c (patch) | |
tree | 1a4e5e5fab4eb03ca5943bd5a71048e5e8dfd2e6 /svl | |
parent | 74baee744c8ff5b3a34c40ed16803d07f3f5fc2d (diff) |
Related: fdo#79142 make SetName default to Reindexing
Change-Id: I408042bc7bf1a5a955203d65d2c68ebf9527b9b5
(cherry picked from commit 05e2fd162ef86ebe4ea2a2a679cabeae33e844f0)
Diffstat (limited to 'svl')
-rw-r--r-- | svl/source/items/style.cxx | 4 |
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 ) ); |