From 9083776b9c368068c9fbb133abd7e76f1dfe7391 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Sat, 16 Oct 2010 20:11:48 +0000 Subject: [PATCH] Update the color spectrum view when a recently used color is selected in the color picker Originally committed to SVN as r4815. --- aegisub/src/dialog_colorpicker.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aegisub/src/dialog_colorpicker.cpp b/aegisub/src/dialog_colorpicker.cpp index 6f23f2a7d..df2b142e0 100644 --- a/aegisub/src/dialog_colorpicker.cpp +++ b/aegisub/src/dialog_colorpicker.cpp @@ -913,7 +913,6 @@ DialogColorPicker::DialogColorPicker(wxWindow *parent, wxColour initial_color, C rgb_spectrum[2] = hsl_spectrum = hsv_spectrum = 0; - spectrum_dirty = true; // generate spectrum slider bar images wxImage sliderimg(slider_width, 256, true); @@ -1162,6 +1161,7 @@ void DialogColorPicker::SetColor(wxColour new_color) rgb_input[0]->SetValue(new_color.Red()); rgb_input[1]->SetValue(new_color.Green()); rgb_input[2]->SetValue(new_color.Blue()); + spectrum_dirty = true; UpdateFromRGB(); }