[Kst] kdeextragear-2/kst/kst

Barth Netterfield netterfield at astro.utoronto.ca
Tue Feb 17 00:27:23 CET 2004


CVS commit by netterfield: 

Fix datamode bug.


  M +6 -4      kstbasecurve.cpp   1.10


--- kdeextragear-2/kst/kst/kstbasecurve.cpp  #1.9:1.10
@@ -131,4 +131,5 @@ int KstBaseCurve::getIndexNearXY(double 
   for (i=i0+1; i<=iN; i++) {
     getPoint(i, xi, yi);
+    if (fabs(x-xi)<dx) {
     dyi = fabs(y-yi);
     if (dyi<dy) {
@@ -137,4 +138,5 @@ int KstBaseCurve::getIndexNearXY(double 
     }
   }
+  }
   return(index);
 }





More information about the Kst mailing list