Commit 6ac9a569 authored by Carl Olsson's avatar Carl Olsson

Fix KoColorSet::colorCount so not counting the global group twice.

parent 16678ad7
......@@ -259,7 +259,7 @@ void KoColorSet::setPaletteType(PaletteType paletteType)
quint32 KoColorSet::colorCount() const
int colorCount = d->groups[GLOBAL_GROUP_NAME].colorCount();
int colorCount = 0;
for (KisSwatchGroup &g : d->groups.values()) {
colorCount += g.colorCount();
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment