[Kst] branches/work/kst/viewpaint/kst/kst
George Staikos
staikos at kde.org
Sun Jan 29 21:43:53 CET 2006
SVN commit 503664 by staikos:
fix printing of legends
M +4 -2 kstviewlegend.cpp
--- branches/work/kst/viewpaint/kst/kst/kstviewlegend.cpp #503663:503664
@@ -260,13 +260,15 @@
const QRect cr(contentsRect());
if (p.type() == KstPainter::P_PRINT || p.type() == KstPainter::P_EXPORT) {
p.save();
+ adjustSizeForText(cr);
KstBorderedViewObject::paintSelf(p, bounds);
- adjustSizeForText(p.window());
p.setViewport(contentsRect());
p.setWindow(0, 0, cr.width(), cr.height());
+ if (!_transparent) {
+ p.fillRect(0, 0, cr.width(), cr.height(), _backgroundColor);
+ }
drawToPainter(p);
p.restore();
- adjustSizeForText(cr);
} else {
if (p.makingMask()) {
p.setRasterOp(Qt::SetROP);
More information about the Kst
mailing list