[Kst] kdeextragear-2/kst/kst

George Staikos staikos at kde.org
Tue Dec 23 06:22:34 CET 2003


CVS commit by staikos: 

- no I was not drunk while I made that last commit.  clearly we already have
  xpt calculated to much greater accuracy.  duh.
- add datamode to the toolbar, icon pending


  M +2 -1      kstui.rc   1.10
  M +1 -5      kstview.cpp   1.61


--- kdeextragear-2/kst/kst/kstui.rc  #1.9:1.10
@@ -1,4 +1,4 @@
 <!DOCTYPE kpartgui>
-<kpartgui version="2" name="kst">
+<kpartgui version="3" name="kst">
 <MenuBar>
   <Menu name="file"><text>&amp;File</text>
@@ -73,4 +73,5 @@
   <Separator/>
   <Action name="zoomtie_action"/>
+  <Action name="datamode_action"/>
 </ToolBar>
 </kpartgui>

--- kdeextragear-2/kst/kst/kstview.cpp  #1.60:1.61
@@ -410,9 +410,5 @@ void KstView::updateMouse() {
         if (fabs(ypos - ypt) < delta) {
           delta = fabs(ypos - ypt);
-          // Notice: This is not exactly the inverse of pt(xpos) since there
-          //         is float->int->float conversion.  This is by design and
-          //         varies for each i.  This is how we get the proper x
-          //         position for the corresponding "newypos".
-          newxpos = double(pt) * ((*i)->maxX() - (*i)->minX()) / (*i)->sampleCount();
+          newxpos = xpt;
           newypos = ypt;
           curve = *i;





More information about the Kst mailing list