[Kst] extragear/graphics/kst/kst

Andrew Walker arwalker at sumusltd.com
Sat Dec 17 00:33:54 CET 2005


SVN commit 489051 by arwalker:

CCBUG:118148 Fix problem with transparency not being honoured when printing

 M  +5 -3      kstviewlabel.cpp  


--- trunk/extragear/graphics/kst/kst/kstviewlabel.cpp #489050:489051
@@ -228,7 +228,6 @@
 
 
 void KstViewLabel::drawToPainter(Label::Parsed *lp, QPainter& p) {
-
   int hJust = KST_JUSTIFY_H(_justify);
   if (QApplication::reverseLayout()) {
     if (hJust == KST_JUSTIFY_H_NONE) {
@@ -328,7 +327,8 @@
 
 void KstViewLabel::paint(KstPainter& p, const QRegion& bounds) {
   p.save();
-  if (p.type() == KstPainter::P_PRINT) {
+  if (p.type() == KstPainter::P_PRINT ||
+      p.type() == KstPainter::P_EXPORT) {
     //p.save();
     if (_autoResize) {
       adjustSizeForText(p.window());
@@ -369,7 +369,9 @@
     }
   }
   p.restore();
-  KstBorderedViewObject::paint(p, bounds);
+  if (!_transparent) {
+    KstBorderedViewObject::paint(p, bounds);
+  }
 }
 
 


More information about the Kst mailing list