[Kst] kdeextragear-2/kst/kst
George Staikos
staikos at kde.org
Fri Jan 16 03:28:46 CET 2004
CVS commit by staikos:
Make data mode work with vectors that started after 0
CCMAIL: 72204-done at bugs.kde.org
M +10 -0 kstview.cpp 1.73
--- kdeextragear-2/kst/kst/kstview.cpp #1.72:1.73
@@ -418,4 +418,11 @@ void KstView::updateMouse() {
double xpt = 0.0, ypt = 0.0;
int pt = int((*i)->sampleCount() * xpos / ((*i)->maxX() - (*i)->minX()));
+
+ pt -= (*i)->minX();
+
+ if (pt < 0) {
+ continue;
+ }
+
(*i)->getPoint(pt, xpt, ypt);
if (fabs(ypos - ypt) < delta) {
@@ -433,4 +441,6 @@ void KstView::updateMouse() {
return;
}
+ emit newDataMsg(QString::null);
+ return;
}
More information about the Kst
mailing list