[Kst] kdeextragear-2/kst/kst

Andrew Walker arwalker at sumusltd.com
Wed Sep 8 22:04:57 CEST 2004


CVS commit by arwalker: 

Removed compiler warnings.


  M +5 -5      kstbasecurve.cpp   1.16


--- kdeextragear-2/kst/kst/kstbasecurve.cpp  #1.15:1.16
@@ -109,13 +109,13 @@ int KstBaseCurve::getIndexNearXY(double 
   if (xIsRising()) {
     iN = i0 = getIndexNearX(x);
-    point(i0, xi, yi);
 
-    while ((i0>0) && (x-dx<xi)) {
+    point(i0, xi, yi);
+    while (i0 > 0 && x-dx_per_pix < xi) {
       i0--;
       point(i0, xi, yi);
     }
-    point(iN, xi, yi);
 
-    while ((iN<sc-1) && (x+dx>xi)) {
+    point(iN, xi, yi);
+    while (iN < sc-1 && x+dx_per_pix > xi) {
       iN++;
       point(iN, xi, yi);
@@ -142,5 +142,5 @@ int KstBaseCurve::getIndexNearXY(double 
         dy = dyi;
       }
-    } else if(dxi < dx) {
+    } else if (dxi < dx) {
       dx = dxi;
       index = i;





More information about the Kst mailing list