[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: Re: KDE/kdebase/workspace/libs/plasma/private
From: André_Wöbbeking <Woebbeking () kde ! org>
Date: 2008-09-20 9:35:06
Message-ID: 200809201135.06351.Woebbeking () kde ! org
[Download RAW message or body]
On Saturday 20 September 2008, Aaron J. Seigo wrote:
> SVN commit 862849 by aseigo:
>
> smoooooooth, faaaaaaaaaast
>
>
> M +23 -12 applethandle.cpp
>
>
> --- trunk/KDE/kdebase/workspace/libs/plasma/private/applethandle.cpp
> #862848:862849 @@ -223,13 +223,14 @@
> Q_UNUSED(option);
> Q_UNUSED(widget);
>
> - if (m_opacity == 0) {
> + if (qFuzzyCompare(m_opacity, 0.0)) {
From QCOMPARE's docs:
In the case of comparing floats and doubles, qFuzzyCompare() is used for
comparing. This means that comparing to 0 will likely fail. One
solution to this is to compare to 1, and add 1 to the produced output.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic