diff --git a/ui/graphview.cpp b/ui/graphview.cpp index 194139c7d..4a62ed8fd 100644 --- a/ui/graphview.cpp +++ b/ui/graphview.cpp @@ -18,7 +18,7 @@ QColor get_curve_color(int index, int length) { QColor c; - int hue = (double(index)/double(length))*255; + int hue = qRound((double(index)/double(length))*255); c.setHsv(hue, 255, 255); return c; }