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

George Staikos staikos at kde.org
Wed Jun 7 09:54:23 CEST 2006


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