summaryrefslogtreecommitdiffhomepage
path: root/spline-widget/spline-widget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'spline-widget/spline-widget.cpp')
-rw-r--r--spline-widget/spline-widget.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/spline-widget/spline-widget.cpp b/spline-widget/spline-widget.cpp
index 0dc94555..472862fe 100644
--- a/spline-widget/spline-widget.cpp
+++ b/spline-widget/spline-widget.cpp
@@ -153,6 +153,7 @@ void spline_widget::drawFunction()
(
if (!isEnabled() && !_preview_only)
{
+ QColor color(spline_color);
const int avg = int(float(color.red() + color.green() + color.blue())/3);
return QColor(int(float(color.red() + avg) * .5f),
int(float(color.green() + avg) * .5f),