[Kst] kdeextragear-2/kst/kst

Andrew Walker arwalker at sumusltd.com
Fri Jan 14 19:09:23 CET 2005


CVS commit by arwalker: 

Prevent infinite recursion


  M +2 -2      kst2dplot.cpp   1.351


--- kdeextragear-2/kst/kst/kst2dplot.cpp  #1.350:1.351
@@ -2035,5 +2035,5 @@ void Kst2DPlot::paint(KstPaintType type,
         if (GetPlotRegion().contains(_mouse.tracker)) {
           updateMousePos(_mouse.tracker);
-          if (KstApp::inst()->dataMode()) {
+          if (KstApp::inst()->dataMode() && Curves.count() > 0) {
             highlightNearestDataPoint(false, view, _mouse.tracker);
           }
@@ -3147,5 +3147,5 @@ void Kst2DPlot::highlightNearestDataPoin
     (*i)->point(i_near_x, near_x, near_y);
     distance = fabs(ypos - near_y);
-    if (distance < best_distance) {
+    if (distance < best_distance || curve.data() == 0L) {
       newypos = near_y;
       newxpos = near_x;




More information about the Kst mailing list