[Kst] [Bug 129595] View image with transparent area not clipped correctly

Andrew Walker arwalker at sumusltd.com
Thu Jul 6 01:49:09 CEST 2006


------- 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=129595         




------- Additional Comments From arwalker sumusltd com  2006-07-06 01:49 -------
The problem is that the clipRegion() for the image is being incorrectly returned, because _clipMask is being incorrectly calculated.

In turn _clipMask is incorrectly calculated as KstViewPicture::transparent() is returning false and so the KstViewObject::paintSelf() code is filling in the entire geometry of the image. This results in a clipRegion() which is the entire area of the image, instead of only its non-transparent area.

And finally, this occurs because _iCache is not valid immediately after hitting the Ok button in the edit dialog, so _iCache.hasAlphaBuffer() will return false in such conditions.


More information about the Kst mailing list