summaryrefslogtreecommitdiff
path: root/svx/source/tbxctrls/PaletteManager.cxx
diff options
context:
space:
mode:
authorJim Raykowski <raykowj@gmail.com>2018-12-09 23:16:18 -0900
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2019-01-01 23:02:05 +0100
commit82df20eeb8f071aaf3780b111aaa27fbc1b2dc9a (patch)
tree805ecd0905cced32e79a209f9276e2e419412396 /svx/source/tbxctrls/PaletteManager.cxx
parentb8d2d78974fcb3e95de87dd98103e5bc015b7687 (diff)
tdf#105225 Add palette selection to options charts default colors
Change-Id: I42d1f155238213e41b8a57ce47b70cfeb2408b26 Reviewed-on: https://gerrit.libreoffice.org/64980 Tested-by: Jenkins Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'svx/source/tbxctrls/PaletteManager.cxx')
-rw-r--r--svx/source/tbxctrls/PaletteManager.cxx2
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 ) + " " );
}
}