[Kst] [Bug 118683] Borders on ViewImages don't print
George Staikos
staikos at kde.org
Tue Dec 20 05:23:05 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=118683
staikos kde org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
------- Additional Comments From staikos kde org 2005-12-20 05:22 -------
SVN commit 489906 by staikos:
make images print properly again
BUG: 118683
M +8 -8 kstviewpicture.cpp
--- trunk/extragear/graphics/kst/kst/kstviewpicture.cpp #489905:489906
@ -69,14 +69,14 @
void KstViewPicture::paint(KstPainter& p, const QRegion& bounds) {
p.save();
- if (p.type() != KstPainter::P_PRINT && p.type() != KstPainter::P_EXPORT) {
- if (p.makingMask()) {
- p.setRasterOp(Qt::SetROP);
- KstBorderedViewObject::paint(p, bounds);
- } else {
+ if (p.makingMask()) {
+ p.setRasterOp(Qt::SetROP);
+ KstBorderedViewObject::paint(p, bounds);
+ } else {
+ KstBorderedViewObject::paint(p, bounds);
+ // FIXME: inefficient
+ if (p.type() != KstPainter::P_PRINT && p.type() != KstPainter::P_EXPORT) {
QRegion boundary = bounds & _lastClipRegion;
- KstBorderedViewObject::paint(p, bounds);
- // FIXME: inefficient
for (KstViewObjectList::Iterator i = _children.begin(); i != _children.end(); ++i) {
boundary -= (*i)->clipRegion();
}
@ -84,7 +84,7 @
p.setClipRegion(boundary);
}
}
-
+
if (_image.isNull()) {
QRect r(_geom);
r.setWidth(_geom.width() - 1);
More information about the Kst
mailing list