qFuzzyCompare doesn't work well with 0.0, so compare against 1.0 instead; interesting to know

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=863599
This commit is contained in:
Aaron J. Seigo 2008-09-22 16:37:36 +00:00
parent b2e27747b9
commit b4b2a4a96a

View File

@ -223,8 +223,7 @@ void AppletHandle::paint(QPainter *painter, const QStyleOptionGraphicsItem *opti
Q_UNUSED(option);
Q_UNUSED(widget);
if (qFuzzyCompare(m_opacity, 0.0)) {
if (qFuzzyCompare(m_opacity + 1.0, 1.0)) {
return;
}