Commit ae0fd531 authored by Wolthera van Hövell's avatar Wolthera van Hövell 🛍

Enable typing hdr values into spinbox.

This could probably be a little more elegant...

Ref 2337
parent a5c0408a
......@@ -127,7 +127,8 @@ void KisSpinboxColorSelector::slotSetColorSpace(const KoColorSpace *cs)
case KoChannelInfo::FLOAT32: {
KisDoubleParseSpinBox *input = new KisDoubleParseSpinBox(this);
input->setMinimum(0);
input->setMaximum(1.0);
input->setMaximum(KoColorSpaceMathsTraits<float>::max);
input->setSingleStep(0.1);
m_d->doubleSpinBoxList.append(input);
layout->addRow(inputLabel,input);
if (input) {
......
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