[Kst] [Bug 149402] transparent objects with children are not drawn correctly

Andrew Walker arwalker at sumusltd.com
Fri Aug 31 01:41:02 CEST 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=149402         




------- Additional Comments From arwalker sumusltd com  2007-08-31 01:41 -------
The problem is caused by incorrect calculation of the clipRegion of a transparent.
This calculation is done in KstViewObject::clipRegion().

The problem, in essence, is that some objects internally use _clipMask and _myClipMask to cache their clipping region. In these cases paintSelf only draws the object associated with _myClipMask with the makingMask flag is set on the KstPainter.

However, KstViewObject::clipRegion() is implicitly expecting paintSelf() to draw both objects (associated with _clipMask and _myClipMask) else the clipping region will not be correctly determined.

There would seem to be three alternatives:

1) have paintSelf() draw everything when the makingMask flag is set
2) have Kst::clipRegion() not rely on KstViewObject::paint() to determine the clipping region
3) remove entirely the clipping mechanism as it is not necessary


More information about the Kst mailing list