[Kst] [Bug 128399] Resizing horizontal lines can cause a crash when maintain aspect modifier is held down.

George Staikos staikos at kde.org
Wed Jun 7 09:56: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=128399         
staikos kde org changed:

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



------- Additional Comments From staikos kde org  2006-06-07 09:56 -------
SVN commit 549034 by staikos:

fix apparent C&P bug
BUG: 128399


 M  +1 -1      ksttoplevelview.cpp  


--- trunk/extragear/graphics/kst/src/libkstapp/ksttoplevelview.cpp #549033:549034
 @ -861,7 +861,7  @
       fromPoint = line->from();
       if (shift) {
         double absAspect = fabs(aspect);
-        if (absAspect < 500 && (double(abs((pos.y() - toPoint.y())/(pos.x() - toPoint.x()))) < aspect || absAspect < 0.1)) {
+        if (absAspect < 500 && (double(abs((pos.y() - fromPoint.y())/(pos.x() - fromPoint.x()))) < aspect || absAspect < 0.1)) {
           toPoint = QPoint(pos.x(), fromPoint.y() + int(aspect*(pos.x() - fromPoint.x())));
         } else {
           toPoint = QPoint(fromPoint.x() + int((pos.y() - fromPoint.y())/aspect), pos.y());


More information about the Kst mailing list