[Kst] extragear/graphics/kst/kst
George Staikos
staikos at kde.org
Tue Oct 11 03:32:40 CEST 2005
SVN commit 469395 by staikos:
Closer to proper location for X and Y labels
M +2 -2 kst2dplot.cpp
--- trunk/extragear/graphics/kst/kst/kst2dplot.cpp #469394:469395
@@ -5750,14 +5750,14 @@
void Kst2DPlot::plotLabels(QPainter &p, int x_px, int y_px, double xleft_bdr_px, double ytop_bdr_px) {
if (!_suppressBottom) {
p.save();
- p.translate((x_px - _xLabel->size().width()) / 2, y_px - _xLabel->size().height());
+ p.translate((x_px - _xLabel->size().width() + xleft_bdr_px) / 2, y_px - _xLabel->size().height());
_xLabel->paint(p);
p.restore();
}
if (!_suppressLeft) {
p.save();
- p.translate((_yLabel->lineSpacing() - _yLabel->ascent())/2, (y_px - _yLabel->size().height()) / 2);
+ p.translate((_yLabel->lineSpacing() - _yLabel->ascent())/2, (y_px - _yLabel->size().width()) / 2 - ytop_bdr_px);
_yLabel->paint(p);
p.restore();
}
More information about the Kst
mailing list