Apache OpenOffice (AOO) Bugzilla – Issue 128489
rendering for extrusion depth of custom shapes is wrong for position values other than zero
Last modified: 2022-10-28 12:56:59 UTC
Created attachment 87062 [details] patch to fix the problem I have fixed the problem for LibreOffice, see https://gerrit.libreoffice.org/c/core/+/123997 and https://bugs.documentfoundation.org/show_bug.cgi?id=145245 AOO has the same problem. Attached is the patch as it would be needed for LibreOffice. I have no AOO source to generate a direct patch. But it contains only the correction of two wrong signs, so it should be no technical problem to transport it to AOO. You can use my patch under Apache License 2.0.
@Regina: Thank your for your patch. Do you have also some tips how to test the patched code?
(In reply to Marcus from comment #1) > @Regina: > Thank your for your patch. Do you have also some tips how to test the > patched code? Manually testing is easy. Take the example file from gerrit or from the LO bug and open it in current AOO and then in the patched one. The file contains extruded shapes with depth position 0, 0.5 and 1. The shapes are rotated by 90deg around the x-axis so that the extrusion becomes visible. The length of the extrusion should be the same. The position of the extrusion should be different. I don't know how automatic testing is done for AOO. For the text with Cppunit in LO I have examined the bound rectangle of the shapes. In case depth position 0.5 the bound rectangle has height 0 in the unpatched Office, in case depth position 1 the bound rectangle has the same position as for position 0 in the unpatched Office. Test looks then, that the bound rectangle is correct. You can see the Cppunit test code in https://gerrit.libreoffice.org/c/core/+/123997. In case you can use it, you can of cause take all of it under Apache License 2.0 too. I will attach the file and a screenshot, how it should look.
Created attachment 87063 [details] Screenshot how it should be rendered
Created attachment 87064 [details] File from which the screenshot is taken. The file source is manually changed to have the different depth positions. There exist no UI to set the depth position.
Created Pull Request: https://github.com/apache/openoffice/pull/140 Many thanks Regina!
Fix committed to trunk: https://github.com/apache/openoffice/commit/3ee92af9639dd80a1e93eb1f3aac6a970a5c9228 Cherry-picked for AOO42X: https://github.com/apache/openoffice/commit/1c05acecb7f8aba5700445f06fa3359dc21f80ea Cherry-picked for AOO41X: https://github.com/apache/openoffice/commit/298d36787efdaf44ef5c95b58e441beba9fb89a2
See: https://home.apache.org/~mseidel/AOO-builds/AOO-4112-Test/ for Windows Test Builds.