[Kst] [Bug 118148] View Object Printing Bugs

Andrew Walker arwalker at sumusltd.com
Sat Dec 17 00:34:03 CET 2005


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=118148         




------- Additional Comments From arwalker sumusltd com  2005-12-17 00:33 -------
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