Commit 6636afe9 authored by Rex Dieter's avatar Rex Dieter

fix for qreal = float platforms (like arm)

got hint from http://www.thelins.se/johan/blog/2011/12/qbound-on-arm/
parent f1ddaa24
......@@ -468,7 +468,7 @@ void KisToolPaint::stepAlpha(float step)
{
qreal alpha = canvas()->resourceManager()->resource(KisCanvasResourceProvider::Opacity).toDouble();
alpha += step;
alpha = qBound(0.0, alpha, 1.0);
alpha = qBound<qreal>(0.0, alpha, 1.0);
canvas()->resourceManager ()->setResource(KisCanvasResourceProvider::Opacity, alpha);
}
......
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