Bug 108616 - Lower part of axes are cut off during printing.
Summary: Lower part of axes are cut off during printing.
Status: RESOLVED FIXED
Alias: None
Product: kst
Classification: Applications
Component: general (show other bugs)
Version: 1.x
Platform: RedHat Enterprise Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Andrew Walker
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-06 00:57 UTC by Matthew Truch
Modified: 2005-07-19 01:45 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
Postscript of the missing axes printer output (361.85 KB, application/postscript)
2005-07-06 01:05 UTC, Matthew Truch
Details
Postscript of the missing axes printer output (279.26 KB, application/postscript)
2005-07-06 01:08 UTC, Matthew Truch
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matthew Truch 2005-07-06 00:57:56 UTC
Version:           1.2.0_devel (using KDE KDE 3.3.1)
Installed from:    RedHat RPMs
OS:                Linux

When printing, the lower part of the axes on a window are cut off.  Not the whole plot, but just the axes lines and the tick-marks.  This seems to occur every time I print something, and regardless of the printer or driver, or printing to file etc.  Exporting to a graphics file works as expected.
Comment 1 Matthew Truch 2005-07-06 01:05:30 UTC
Created attachment 11688 [details]
Postscript of the missing axes printer output

A postscript file generated from the print option of kst showing the missing
lower region of the axes and tick marks (but with everything else there.
Comment 2 Matthew Truch 2005-07-06 01:08:51 UTC
Created attachment 11689 [details]
Postscript of the missing axes printer output

Postscript generated from kst showing the missing lower (on the window) axes,
but the rest is there.	Sorry for previous postscript, it was a mistake (from a
borked multi-window kst).
Comment 3 Andrew Walker 2005-07-19 01:45:09 UTC
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();
   }