diff options
Diffstat (limited to 'src/gui/widgets')
-rw-r--r-- | src/gui/widgets/tabs/setup_colors.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/widgets/tabs/setup_colors.cpp b/src/gui/widgets/tabs/setup_colors.cpp index 4f2b35113..224bc9799 100644 --- a/src/gui/widgets/tabs/setup_colors.cpp +++ b/src/gui/widgets/tabs/setup_colors.cpp @@ -252,7 +252,7 @@ void Setup_Colors::valueChanged(const SelectionEvent &event A_UNUSED) mSelected = mColorBox->getSelected(); const UserColorIdT type = static_cast<UserColorIdT>( userPalette->getColorTypeAt(mSelected)); - const Color *col = &userPalette->getColor(type); + const Color *col = &userPalette->getColor(type, 255U); const GradientTypeT grad = userPalette->getGradientType(type); const int delay = userPalette->getGradientDelay(type); const Visible showControls = fromBool(grad != GradientType::LABEL, @@ -418,7 +418,7 @@ void Setup_Colors::cancel() userPalette->rollback(); const UserColorIdT type = static_cast<UserColorIdT>( userPalette->getColorTypeAt(mSelected)); - const Color *const col = &userPalette->getColor(type); + const Color *const col = &userPalette->getColor(type, 255U); mGradTypeSlider->setValue(CAST_S32( userPalette->getGradientType(type))); const int delay = userPalette->getGradientDelay(type); |