Apache OpenOffice (AOO) Bugzilla – Issue 116318
axial gradient has wrong border in presentation mode
Last modified: 2017-05-20 10:30:33 UTC
Start Impress and load the attached palette and then the file. The palette contains some axial gradients, so that you can watch the display of some borders. The file contains a sreenshot of the rectangles in edit mode. Go to presentation mode and compare the displayed rectangles with the screenshot. Notice, that the axial gradients have wrong borders. It seems as if the border is not added symmetrically as it should be for an axial gradient. DEV300m76 is OK. I see the bug first in DEV300m77 and unfortunately in OOo33RC8 too.
Created attachment 75474 [details] Palette with some gradients for testing
Created attachment 75475 [details] Rectangles with axial gradients to compare edit and presentation mode
I can confirm this bug. Happens in LibreOffice 3.3 RC2, too.
Reproducible in DEV300_m96 and OOO330_m18. Reassigned.
MD: adjusting target, keyword, owner
This issue has been introduced by issue 105937 in cws thbfixes10 (which was integrated into DEV300 m77): a simple mix-up of method names. In cppcanvas/source/mtfrenderer/implrenderer.cxx the method ImplRenderer::createGradientAction called basegfx::tools::createLinearODFGradientInfo instead of basegfx::tools::createAxialODFGradientInfo to paint axial gradients. The border value had to be adapted for the new method: the area covered by the actual gradient (1 minus the border) was doubled to counteract the compression caused by painting (in effect) two linear gradients side-by-side. Modified file: cppcanvas/source/mtfrenderer/implrenderer.cxx
patch reviewed and endorsed
reassigning to QA for verification
Verified in CWS.