Created attachment 135773 [details] Example pdf file The 'clip' method of ArthurOutputDev sets the current clipping path to the path given to it in the GfxState variable. However, the expected behavior is that the clipping path should be set to the intersection of the previous path with the new one (cf. the Cairo implementation, which does it that way). Luckily, fixing this simply means using a different QPainter clipping option. A patch is attached. I also attach a simply example pdf file to trigger the problem. When correctly rendered, you should see a part of a red ball.
Created attachment 135774 [details] [review] Patch that fixes 'ArthurOutputDev::clip'
PS: This patch should apply to the master branch, with no additional patches.
I've pushed the fix but not the documentation change to OutputDev.h since both comments said exactly the same which seems weird to me as i understand we don't have two functions that do "the same". Please improve the documentation so that it's clear what's the difference betwen the two methods and put it in a new bug :)
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.