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

George Staikos staikos at kde.org
Sun Jan 29 17:40:33 CET 2006


SVN commit 503585 by staikos:

missing P_EXPORT found, and better to be off-by-one large than small


 M  +2 -2      kstborderedviewobject.cpp  
 M  +1 -1      kstviewlegend.cpp  


--- branches/work/kst/viewpaint/kst/kst/kstborderedviewobject.cpp #503584:503585
@@ -87,8 +87,8 @@
     p.setPen(pen);
     r.setX(_geom.left() + _margin + _borderWidth / 2);
     r.setY(_geom.top() + _margin + _borderWidth / 2);
-    r.setWidth(_geom.width() - 2 * _margin - _borderWidth);
-    r.setHeight(_geom.height() - 2 * _margin - _borderWidth);
+    r.setWidth(_geom.width() - 2 * _margin - _borderWidth + 1);
+    r.setHeight(_geom.height() - 2 * _margin - _borderWidth + 1);
     p.drawRect(r);
   }
   p.restore();
--- branches/work/kst/viewpaint/kst/kst/kstviewlegend.cpp #503584:503585
@@ -258,7 +258,7 @@
 
 void KstViewLegend::paintSelf(KstPainter& p, const QRegion& bounds) {
   const QRect cr(contentsRect());
-  if (p.type() == KstPainter::P_PRINT) {
+  if (p.type() == KstPainter::P_PRINT || p.type() == KstPainter::P_EXPORT) {
     p.save();
     KstBorderedViewObject::paint(p, bounds);
     adjustSizeForText(p.window());


More information about the Kst mailing list