[Kst] [Bug 131697] Label creation and subsequent move can cause Kst to crash
Andrew Walker
arwalker at sumusltd.com
Sat Jan 6 01:40:10 CET 2007
------- 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=131697
arwalker sumusltd com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
------- Additional Comments From arwalker sumusltd com 2007-01-06 01:40 -------
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