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

Nicolas Brisset nicolas.brisset at eurocopter.com
Wed Oct 11 09:22:59 CEST 2006


SVN commit 594404 by brisset:

Same compile fix for Solaris as 594403 in the 1.3 branch.


 M  +2 -2      kstgfxmousehandlerutils.cpp  


--- trunk/extragear/graphics/kst/src/libkstapp/kstgfxmousehandlerutils.cpp #594403:594404
@@ -186,8 +186,8 @@
     } else if (mouseDisplacement.y() == 0) { // horizontal line.
       npos = findNearestPtOnLine(mouseOrigin, mouseOrigin + QPoint(1,0), pos, bounds);
     } else { // 45deg or vertical or horizontal.
-      int dx = int(round(2.0*mouseDisplacement.x()/abs(mouseDisplacement.y())));
-      int dy = int(round(2.0*mouseDisplacement.y()/abs(mouseDisplacement.x())));
+      int dx = int(rint(2.0*mouseDisplacement.x()/abs(mouseDisplacement.y())));
+      int dy = int(rint(2.0*mouseDisplacement.y()/abs(mouseDisplacement.x())));
 
       if (dx != 0) {
         dx /= abs(dx);


More information about the Kst mailing list