[Kst] extragear/graphics/kst/kst
George Staikos
staikos at kde.org
Wed Nov 9 03:39:11 CET 2005
SVN commit 479068 by staikos:
factor out calls to KPoint::dim since they all do the same thing and are not
entirely cheap. Should speed up error bars a bit.
M +5 -4 kstvcurve.cpp
--- trunk/extragear/graphics/kst/kst/kstvcurve.cpp #479067:479068
@@ -788,6 +788,7 @@
benchtmp.start();
#endif
+ int pointDim = Point.dim(p);
if (sampleCount() > 0) {
Qt::PenStyle style = KstLineStyle[lineStyle()];
int i0, iN;
@@ -1350,10 +1351,10 @@
int Y1i = d2i(Y1);
p->drawLine(X1i, Y1i, X2i, Y1i);
if (do_low_flag) {
- p->drawLine(X1i, Y1i + Point.dim(p), X1i, Y1i - Point.dim(p));
+ p->drawLine(X1i, Y1i + pointDim, X1i, Y1i - pointDim);
}
if (do_high_flag) {
- p->drawLine(X2i, Y1i + Point.dim(p), X2i, Y1i - Point.dim(p));
+ p->drawLine(X2i, Y1i + pointDim, X2i, Y1i - pointDim);
}
}
}
@@ -1441,10 +1442,10 @@
int Y2i = d2i(Y2);
p->drawLine(X1i, Y1i, X1i, Y2i);
if (do_low_flag) {
- p->drawLine(X1i + Point.dim(p), Y1i, X1i - Point.dim(p), Y1i);
+ p->drawLine(X1i + pointDim, Y1i, X1i - pointDim, Y1i);
}
if (do_high_flag) {
- p->drawLine(X1i + Point.dim(p), Y2i, X1i - Point.dim(p), Y2i);
+ p->drawLine(X1i + pointDim, Y2i, X1i - pointDim, Y2i);
}
}
}
More information about the Kst
mailing list