[Kst] kdeextragear-2/kst/kst
Rick Chern
rchern at interchange.ubc.ca
Fri Jul 23 21:38:54 CEST 2004
CVS commit by rchern:
Position the image properly
M +2 -3 kst2dplot.cpp 1.172
--- kdeextragear-2/kst/kst/kst2dplot.cpp #1.171:1.172
@@ -1254,6 +1253,6 @@ void Kst2DPlot::draw(QPainter &p, KstPai
for (int i=0; i< Hx-Lx;i++) {
for (int j=0; j<Hy-Ly; j++) {
- double zval = image->getClosestZ(((i - b_X) / m_X),
- ((j - b_Y) / m_Y));
+ double zval = image->getClosestZ(((i + Lx - _b_X) / _m_X),
+ ((j + Ly - _b_Y) / _m_Y));
tempImage.setPixel(i,j, d2i( zval*120 + 120));
}
More information about the Kst
mailing list