Fix HSV Alpha slider in Palette Editor when only one entry is selected

This commit is contained in:
David Capello 2015-07-10 17:37:09 -03:00
parent 3dcffc828d
commit 420b38e426

View File

@ -549,6 +549,7 @@ void PaletteEntryEditor::setAbsolutePaletteEntryChannel(ColorSliders::Channel ch
hsv.hue(color.getHue()); hsv.hue(color.getHue());
hsv.saturation(double(color.getSaturation()) / 100.0); hsv.saturation(double(color.getSaturation()) / 100.0);
hsv.value(double(color.getValue()) / 100.0); hsv.value(double(color.getValue()) / 100.0);
a = color.getAlpha();
} }
// Modify one channel a set of entries // Modify one channel a set of entries
else { else {