diff options
-rw-r--r-- | spline-widget/spline-widget.cpp | 1 |
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), |