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

George Staikos staikos at kde.org
Thu May 25 14:47:48 CEST 2006


SVN commit 544586 by staikos:

this drawCursorPos() stuff is impressively inefficient.  Move some variables
out of the way for now.


 M  +1 -1      kst2dplot.cpp  


--- trunk/extragear/graphics/kst/src/libkstapp/kst2dplot.cpp #544585:544586
@@ -3549,10 +3549,10 @@
     QString name;
     double xmin, ymin;
     double xmax, ymax;
-    double xpos, ypos;
 
     drawCursorPos(view);
     if (KstApp::inst()->dataMode()) {
+      double xpos, ypos;
       getCursorPos(_mouse.tracker, xpos, ypos, xmin, xmax, ymin, ymax);
       getNearestDataPoint(_mouse.tracker, name, _cursor_x, _cursor_y, xpos, ypos, xmin, xmax);
     } else {


More information about the Kst mailing list