Commit 549c6633 authored by Carl Olsson's avatar Carl Olsson

Have to manually limit alpha index to maximum.

parent 6ac9a569
......@@ -117,6 +117,7 @@ KisPalettizeWidget::KisPalettizeWidget(QWidget* parent)
QObject::connect(m_paletteWidget, &KoResourceItemChooser::resourceSelected, [this](){
const KoColorSet* const palette = static_cast<const KoColorSet*>(m_paletteWidget->currentResource());
alphaIndexSpinBox->setMaximum(palette ? int(palette->colorCount() - 1) : 0);
alphaIndexSpinBox->setValue(std::min(alphaIndexSpinBox->value(), alphaIndexSpinBox->maximum()));
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment