[Kst] extragear/graphics/kst/src/libkstapp

Andrew Walker arwalker at sumusltd.com
Sat Jan 6 01:40:06 CET 2007


SVN commit 620438 by arwalker:

BUG:131697 Ensure that the child object falls within the parent. Previously this was being done only for the contentsRect of the child, which is necessarily smaller than the overall geometry of the child. This fix prevents the described crash and provides a better visual result when a label is too large to fit within its parent.

 M  +4 -0      kstborderedviewobject.cpp  


--- trunk/extragear/graphics/kst/src/libkstapp/kstborderedviewobject.cpp #620437:620438
@@ -201,6 +201,10 @@
   _geom.setY(rect.top() - mpb);
   _geom.setWidth(rect.width() + 2 * mpb);
   _geom.setHeight(rect.height() + 2 * mpb);
+  
+  if(_parent) {
+    _geom = _geom.intersect(_parent->geometry());
+  }
 }
 
 


More information about the Kst mailing list