Commit dffa0760 authored by L. E. Segovia's avatar L. E. Segovia

Use getUIMin/Max in the channel filters too

parent 7841a68f
......@@ -100,8 +100,13 @@ void KisPerChannelConfigWidget::updateChannelControls()
case KoChannelInfo::FLOAT64:
default:
//Hack Alert: should be changed to float
min = 0;
max = 100;
if (m_dev->colorSpace()->colorModelId() == LABAColorModelID || m_dev->colorSpace()->colorModelId() == CMYKAColorModelID) {
min = m_dev->colorSpace()->channels()[m_activeVChannel]->getUIMin();
max = m_dev->colorSpace()->channels()[m_activeVChannel]->getUIMax();
} else {
min = 0;
max = 100;
}
break;
}
......
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