[Kst] branches/work/kst/viewpaint/kst/kst

George Staikos staikos at kde.org
Sun Jan 29 19:48:52 CET 2006


SVN commit 503631 by staikos:

pictures print


 M  +9 -5      kstviewpicture.cpp  


--- branches/work/kst/viewpaint/kst/kst/kstviewpicture.cpp #503630:503631
@@ -101,12 +101,16 @@
 
 void KstViewPicture::paintSelf(KstPainter& p, const QRegion& bounds) {
   p.save();
-  if (p.makingMask()) {
-    p.setRasterOp(Qt::SetROP);
+  if (p.type() != KstPainter::P_PRINT && p.type() != KstPainter::P_EXPORT) {
+    if (p.makingMask()) {
+      p.setRasterOp(Qt::SetROP);
+    } else {
+      const QRegion clip(clipRegion());
+      KstBorderedViewObject::paintSelf(p, bounds - _myClipMask);
+      p.setClipRegion(bounds & clip);
+    }
   } else {
-    const QRegion clip(clipRegion());
-    KstBorderedViewObject::paintSelf(p, bounds - _myClipMask);
-    p.setClipRegion(bounds & clip);
+    KstBorderedViewObject::paintSelf(p, bounds);
   }
 
   if (_image.isNull()) {


More information about the Kst mailing list