bugfix
This commit is contained in:
parent
564ae4db84
commit
2aa5c7eb3c
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ QPixmap PingPixmapGenerator::generatePixmap(int size, int value, int max)
|
|||
pixmap.fill(Qt::transparent);
|
||||
QPainter painter(&pixmap);
|
||||
QColor color;
|
||||
if (max == -1)
|
||||
if ((max == -1) || (value == -1))
|
||||
color = Qt::black;
|
||||
else
|
||||
color.setHsv(120 * (1.0 - ((double) value / max)), 255, 255);
|
||||
|
|
Loading…
Reference in a new issue