Fix typo that made the color picker's cursor appear in the wrong place in RGB modes

This commit is contained in:
Thomas Goyne 2015-11-27 18:28:30 -08:00
parent 9112cc8cf9
commit 1d00bd834d
1 changed files with 1 additions and 1 deletions

View File

@ -844,7 +844,7 @@ void DialogColorPicker::UpdateSpectrumDisplay() {
case 0: case 1: case 2: case 0: case 1: case 2:
slider->SetBackground(&rgb_slider[i]); slider->SetBackground(&rgb_slider[i]);
slider->SetXY(0, rgb_input[i]->GetValue()); slider->SetXY(0, rgb_input[i]->GetValue());
spectrum->SetXY(rgb_input[2 - (i == 2)]->GetValue(), rgb_input[1 == 0]->GetValue()); spectrum->SetXY(rgb_input[2 - (i == 2)]->GetValue(), rgb_input[i == 0]->GetValue());
break; break;
case 3: case 3:
slider->SetBackground(&hsl_slider); slider->SetBackground(&hsl_slider);