[Kst] extragear/graphics/kst/kst
Andrew Walker
arwalker at sumusltd.com
Tue Dec 20 22:01:43 CET 2005
SVN commit 490116 by arwalker:
no longer draw to the back buffer when printing/exporting as it results in the legend being incorrectly painted
M +2 -3 kstviewlegend.cpp
--- trunk/extragear/graphics/kst/kst/kstviewlegend.cpp #490115:490116
@@ -115,7 +115,6 @@
void KstViewLegend::resize(const QSize& size) {
KstBorderedViewObject::resize(size);
- drawToBuffer();
}
@@ -249,13 +248,12 @@
void KstViewLegend::paint(KstPainter& p, const QRegion& bounds) {
- if (p.type() == KstPainter::P_PRINT) {
+ if (p.type() == KstPainter::P_PRINT || p.type() == KstPainter::P_EXPORT) {
p.save();
adjustSizeForText(p.window());
p.setViewport(geometry());
p.setWindow(0, 0, geometry().width(), geometry().height());
drawToPainter(p);
- //setDirty();
p.restore();
} else {
if (p.type() == KstPainter::P_UPDATE) {
@@ -264,6 +262,7 @@
bool d = dirty();
if (d) {
adjustSizeForText(p.window()); // calls computeTextSize and drawToBuffer
+ drawToBuffer();
}
if (_transparent) {
More information about the Kst
mailing list