mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
Fix going negative on setAlpha
.. to stop qt outputing error messages
This commit is contained in:
@@ -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...
|
||||
|
||||
Reference in New Issue
Block a user