[Kst] [Bug 131679] Invalid coordinates when moving end point of line

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


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=131679         
duncan.hanson gmail com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From duncan.hanson gmail com  2006-08-02 01:39 -------
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