From b4b2a4a96aa7bcf8fea469bb0b13993fb541c42a Mon Sep 17 00:00:00 2001 From: "Aaron J. Seigo" Date: Mon, 22 Sep 2008 16:37:36 +0000 Subject: [PATCH] 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 --- private/applethandle.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/private/applethandle.cpp b/private/applethandle.cpp index 6350cade7..0ec3df66c 100644 --- a/private/applethandle.cpp +++ b/private/applethandle.cpp @@ -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; }