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

List:       kde-commits
Subject:    extragear/graphics/kst/src/libkstapp
From:       Andrew Walker <arwalker () sumusltd ! com>
Date:       2006-08-01 0:09:22
Message-ID: 1154390962.878077.4543.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 568394 by arwalker:

BUG:131625 Correctly normalize the new QRect

 M  +11 -0     kstgfxmousehandlerutils.cpp  


--- trunk/extragear/graphics/kst/src/libkstapp/kstgfxmousehandlerutils.cpp #568393:568394
@@ -152,6 +152,17 @@
       newSize.setRight(anchorPoint.x() - int(newHalfWidth));
     }
 
+  if (newSize.width() < 0) {
+    int width = newSize.width();
+    newSize.setLeft(newSize.left() + width);
+    newSize.setRight(width * -1);
+  }
+  if (newSize.height() < 0) {
+    int height = newSize.height();
+    newSize.setTop(newSize.top() + height);
+    newSize.setHeight(height * -1);
+  }
+      
     newSize = newSize.normalize();
 
     return newSize;
[prev in list] [next in list] [prev in thread] [next in thread] 

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