[Kst] kdeextragear-2/kst/kst

Andrew Walker arwalker at sumusltd.com
Wed Dec 17 00:07:44 CET 2003


CVS commit by arwalker: 

Removed compiler warnings


  M +2 -2      kstview.cpp   1.59


--- kdeextragear-2/kst/kst/kstview.cpp  #1.58:1.59
@@ -406,10 +406,10 @@ void KstView::updateMouse() {
         double xpt = 0.0, ypt = 0.0;
         double pt = (*i)->sampleCount() * xpos / ((*i)->maxX() - (*i)->minX());
-        (*i)->getPoint(pt, xpt, ypt);
+        (*i)->getPoint((int)pt, xpt, ypt);
 
         // We have to get the previous point and interpolate y here, otherwise
         // datamode y coordinates don't look right.
         double xpt2 = 0.0, ypt2 = 0.0;
-        (*i)->getPoint(pt + 1, xpt2, ypt2);
+        (*i)->getPoint((int)pt + 1, xpt2, ypt2);
         ypt += (pt - xpt) * (ypt2 - ypt) / (xpt2 - xpt);
 





More information about the Kst mailing list