Commit 90ec829f authored by Dmitry Kazakov's avatar Dmitry Kazakov

Fix Chalk paint op saturational ink depletion

Also fix the updates of the checkboxes when they are not toggled
with mouse.

BUG:316859
parent 391c98c7
......@@ -80,7 +80,7 @@ void ChalkBrush::paint(KisPaintDeviceSP dev, qreal x, qreal y, const KoColor &co
if (m_properties->useSaturation) {
if (m_transfo) {
m_transfo->setParameter(m_saturationId, result);
m_transfo->setParameter(m_saturationId, 1.0 + result);
m_transfo->transform(m_inkColor.data(), m_inkColor.data(), 1);
}
......
......@@ -177,7 +177,7 @@
</connection>
<connection>
<sender>inkDepletionCHBox</sender>
<signal>clicked(bool)</signal>
<signal>toggled(bool)</signal>
<receiver>opacity</receiver>
<slot>setEnabled(bool)</slot>
<hints>
......@@ -193,7 +193,7 @@
</connection>
<connection>
<sender>inkDepletionCHBox</sender>
<signal>clicked(bool)</signal>
<signal>toggled(bool)</signal>
<receiver>saturation</receiver>
<slot>setEnabled(bool)</slot>
<hints>
......
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