Fix going negative on setAlpha

.. to stop qt outputing error messages
This commit is contained in:
Mark Liversedge
2014-04-16 17:44:57 +01:00
parent ffb7907376
commit d74c3a729f

View File

@@ -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...