[Kst] kdeextragear-2/kst/kst
Andrew Walker
arwalker at sumusltd.com
Wed Jul 21 20:03:50 CEST 2004
CVS commit by arwalker:
When determining the number of points we need to plot for a curve use XMin,XMax rather _x_min,_x_max to request the nearest point in x for monotonically increasing x vector. _x_min,_x_max are the log of the desired values.
M +2 -2 kst2dplot.cpp 1.165
--- kdeextragear-2/kst/kst/kst2dplot.cpp #1.164:1.165
@@ -1250,9 +1250,9 @@ void Kst2DPlot::draw(QPainter &p, double
int i0, iN;
if (c->xIsRising()) {
- i0 = c->getIndexNearX(x_min);
+ i0 = c->getIndexNearX(XMin);
if (i0>0) {
i0--;
}
- iN = c->getIndexNearX(x_max);
+ iN = c->getIndexNearX(XMax);
if (iN<c->sampleCount() - 1) {
iN++;
More information about the Kst
mailing list