Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++

Fix On-Canvas Brush Editor's decimal sliders

Freya Lupenf7fa3831aa01
diff --git a/plugins/dockers/brushhud/kis_uniform_paintop_property_widget.cpp b/plugins/dockers/brushhud/kis_uniform_paintop_property_widget.cpp
index 8181ea8f35..d1449260de 100644
--- a/plugins/dockers/brushhud/kis_uniform_paintop_property_widget.cpp
+++ b/plugins/dockers/brushhud/kis_uniform_paintop_property_widget.cpp
@@ -188,7 +188,7 @@ void KisUniformPaintOpPropertyDoubleSlider::setValue(const QVariant &value)
dynamic_cast<KisAngleSelector*>(m_slider)->setAngle(value.toInt());
} else {
KIS_SAFE_ASSERT_RECOVER_RETURN(dynamic_cast<KisDoubleSliderSpinBox*>(m_slider));
- dynamic_cast<KisDoubleSliderSpinBox*>(m_slider)->setValue(value.toInt());
+ dynamic_cast<KisDoubleSliderSpinBox*>(m_slider)->setValue(value.toReal());
}
}