summaryrefslogtreecommitdiffhomepage
path: root/spline-widget
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-09-09 15:03:13 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-09-09 15:03:13 +0200
commit7ac86dfa4973c5b9a10a2a8ce1e5e6a672572ca2 (patch)
treeb968dcde621f6b0281fcbc20dd24ece9e397f14f /spline-widget
parentdd790c11fafaa0890bdc4c9b38d4fd1ec48003d3 (diff)
spline-widget: simplify alpha calculation
Diffstat (limited to 'spline-widget')
-rw-r--r--spline-widget/spline-widget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/spline-widget/spline-widget.cpp b/spline-widget/spline-widget.cpp
index 472862fe..5f766dcd 100644
--- a/spline-widget/spline-widget.cpp
+++ b/spline-widget/spline-widget.cpp
@@ -163,7 +163,7 @@ void spline_widget::drawFunction()
else
{
QColor color(spline_color);
- color.setAlphaF(std::min(.9, color.alphaF()));
+ color.setAlphaF(color.alphaF() * .9);
return color;
}
);