[Kst] extragear/graphics/kst/src/libkstapp

Duncan Hanson duncan.hanson at gmail.com
Wed Aug 2 01:39:42 CEST 2006


SVN commit 568692 by dhanson:

BUG:131679 restore correct pos. odd indeed- we'll have to keep an eye out for any other miss-diffs.

 M  +4 -4      ksttoplevelview.cpp  


--- trunk/extragear/graphics/kst/src/libkstapp/ksttoplevelview.cpp #568691:568692
@@ -785,10 +785,10 @@
   QPoint npos(pos);
 
   //pos must be inside the parent
-  npos.setX(kMax(pos.x(), bounds.left()));
-  npos.setX(kMin(pos.x(), bounds.right()));
-  npos.setY(kMin(pos.y(), bounds.bottom()));
-  npos.setY(kMax(pos.y(), bounds.top()));
+  npos.setX(kMax(npos.x(), bounds.left()));
+  npos.setX(kMin(npos.x(), bounds.right()));
+  npos.setY(kMin(npos.y(), bounds.bottom()));
+  npos.setY(kMax(npos.y(), bounds.top()));
 
   if (KstViewLinePtr line = kst_cast<KstViewLine>(_pressTarget)) {
     QPoint movePoint, anchorPoint;


More information about the Kst mailing list