Browse Source

Relax comparsion for floating point

adaptive-webui-19844
Chocobo1 8 years ago
parent
commit
a86f189f53
  1. 2
      src/gui/properties/peerlistdelegate.h

2
src/gui/properties/peerlistdelegate.h

@ -93,7 +93,7 @@ public: @@ -93,7 +93,7 @@ public:
case DOWN_SPEED:
case UP_SPEED:{
qreal speed = index.data().toDouble();
if (speed == 0.0)
if (speed <= 0.0)
break;
opt.displayAlignment = Qt::AlignRight | Qt::AlignVCenter;
QItemDelegate::drawDisplay(painter, opt, opt.rect, Utils::Misc::friendlyUnit(speed, true));

Loading…
Cancel
Save