From d74c3a729ff85a6ba0170021bcdf9629bdea3e6e Mon Sep 17 00:00:00 2001 From: Mark Liversedge Date: Wed, 16 Apr 2014 17:44:57 +0100 Subject: [PATCH] Fix going negative on setAlpha .. to stop qt outputing error messages --- src/AllPlot.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AllPlot.cpp b/src/AllPlot.cpp index 350de707a..4c7bad8cb 100644 --- a/src/AllPlot.cpp +++ b/src/AllPlot.cpp @@ -432,7 +432,7 @@ AllPlotObject::setColor(QColor color) // lighten up for the next guy color = color.darker(110); - alpha -= 10; + if (alpha > 10) alpha -= 10; } // has to be different...