[Kst] extragear/graphics/kst/kst

Andrew Walker arwalker at sumusltd.com
Tue Jul 19 01:45:04 CEST 2005


SVN commit 436079 by arwalker:

BUG:108616 Appears to have been caused by changes to the KstViewObject::clipRegion() function for future transparency support. The old clip region (used for painting) was also being used for the printing due to incorrect caching.

 M  +2 -0      kstviewobject.cpp  


--- trunk/extragear/graphics/kst/kst/kstviewobject.cpp #436078:436079
@@ -419,6 +419,7 @@
 void KstViewObject::resizeForPrint(const QSize& size) {
   _geomOld = _geom;
   _geom.setSize(size);
+  _clipMask = QRegion();
   for (KstViewObjectList::Iterator i = _children.begin(); i != _children.end(); ++i) {
     (*i)->parentResizedForPrint();
   }
@@ -427,6 +428,7 @@
 
 void KstViewObject::revertForPrint() {
   _geom = _geomOld;
+  _clipMask = QRegion();
   for (KstViewObjectList::Iterator i = _children.begin(); i != _children.end(); ++i) {
     (*i)->parentRevertedForPrint();
   }


More information about the Kst mailing list