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

George Staikos staikos at kde.org
Wed Aug 2 01:09:51 CEST 2006


SVN commit 568691 by staikos:

add back patch that was in between the reverted ones


 M  +2 -1      kstgfxmousehandlerutils.cpp  


--- trunk/extragear/graphics/kst/src/libkstapp/kstgfxmousehandlerutils.cpp #568690:568691
@@ -175,7 +175,8 @@
 QRect KstGfxMouseHandlerUtils::newLine(const QPoint& pos, const QPoint& mouseOrigin, bool specialAspect, const QRect& bounds) {
 
   if (KDE_ISLIKELY(!specialAspect)) {
-    return QRect(mouseOrigin,pos);
+    QPoint npos = KstGfxMouseHandlerUtils::findNearestPtOnLine(mouseOrigin, pos, pos, bounds);
+    return QRect(mouseOrigin, npos);
   } else { //want special 45deg, or vertical, or horizontal line. 
     QPoint npos;
     QPoint mouseDisplacement(pos - mouseOrigin); // for picking type of line..


More information about the Kst mailing list