[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdelibs/plasma
From:       Aaron J. Seigo <aseigo () kde ! org>
Date:       2011-01-15 1:07:01
Message-ID: 20110115010701.BB0ECAC8B4 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1214508 by aseigo:

amount of 0 should be a no-op; fast and more accurate results
BUG:263179


 M  +4 -0      paintutils.cpp  


--- trunk/KDE/kdelibs/plasma/paintutils.cpp #1214507:1214508
@@ -163,6 +163,10 @@
         return from;
     }
 
+    if (qFuzzyCompare(amount, 0)) {
+        return from;
+    }
+
     QRect startRect(from.rect());
     QRect targetRect(to.rect());
     QSize pixmapSize = startRect.size().expandedTo(targetRect.size());
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic