diff options
Diffstat (limited to 'svx/source/tbxctrls')
-rw-r--r-- | svx/source/tbxctrls/PaletteManager.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/source/tbxctrls/PaletteManager.cxx b/svx/source/tbxctrls/PaletteManager.cxx index f7e5a4b1910c..17afd89e120e 100644 --- a/svx/source/tbxctrls/PaletteManager.cxx +++ b/svx/source/tbxctrls/PaletteManager.cxx @@ -140,13 +140,13 @@ void PaletteManager::ReloadColorSet(SvxColorValueSet &rColorSet) } else if( mnCurrentPalette == mnNumOfPalettes - 1 ) { + rColorSet.Clear(); // Add doc colors to palette SfxObjectShell* pDocSh = SfxObjectShell::Current(); if (pDocSh) { std::set<Color> aColors = pDocSh->GetDocColors(); mnColorCount = aColors.size(); - rColorSet.Clear(); rColorSet.addEntriesForColorSet(aColors, SvxResId( RID_SVXSTR_DOC_COLOR_PREFIX ) + " " ); } } |