[Kst] kdeextragear-2/kst/kst

George Staikos staikos at kde.org
Thu Jan 20 04:34:40 CET 2005


CVS commit by staikos: 

Fix the proximity check for double click in log mode


  M +6 -1      kst2dplot.cpp   1.360


--- kdeextragear-2/kst/kst/kst2dplot.cpp  #1.359:1.360
@@ -6495,5 +6495,10 @@ void Kst2DPlot::mouseDoubleClickEvent(QW
     double near_x, near_y;
     (*i)->point(i_near_x, near_x, near_y);
-    double distance = fabs(ypos - near_y);
+    double distance;
+    if (isYLog()) {
+      distance = fabs(log(ypos/near_y));
+    } else {
+      distance = fabs(ypos - near_y);
+    }
     if (distance < best_distance || curve.data() == 0L) {
       best_distance = distance;




More information about the Kst mailing list