Clear the color set before setting it up

Change-Id: I4c4e30be172e8fcb2b6d966f06540b9b1b62b9ad
This commit is contained in:
Tor Lillqvist
2016-11-23 00:21:37 +02:00
parent 75fb3f79c3
commit aa522981e6

View File

@@ -1096,6 +1096,7 @@ public:
virtual void LoadColorSet( SvxColorValueSet& rColorSet ) override
{
rColorSet.Clear();
for (size_t i = 0; i < SAL_N_ELEMENTS(aLibreColors); i++)
{
rColorSet.InsertItem(i, aLibreColors[i].mColor, OUString::createFromAscii(aLibreColors[i].mName));