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:
parent
b2e27747b9
commit
b4b2a4a96a
@ -223,8 +223,7 @@ void AppletHandle::paint(QPainter *painter, const QStyleOptionGraphicsItem *opti
|
|||||||
Q_UNUSED(option);
|
Q_UNUSED(option);
|
||||||
Q_UNUSED(widget);
|
Q_UNUSED(widget);
|
||||||
|
|
||||||
|
if (qFuzzyCompare(m_opacity + 1.0, 1.0)) {
|
||||||
if (qFuzzyCompare(m_opacity, 0.0)) {
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user