Apache OpenOffice (AOO) Bugzilla – Issue 109118
API: Custom shape reacts wrong on applying a rotation matrix
Last modified: 2017-05-20 11:33:24 UTC
The attached document contains the macro “Change Shape via Matrix”. It reads the property “Transformation” from the selected shape, multiplies it with a 60°-rotation matrix (mathematically 60° = UI 300°) and writes the result back to the property. When applying the macro, the shape should perform a 60°-rotation. Set a break point in the macro “Examine shape” and watch the object “oShape” to see this property. The first page of the document contains a classical ellipse shape. Select it and click several times on the icon “Change Shape via Matrix” in the custom toolbar. You see that the shape rotates around the top left corner of the page. Now go to the second page. It contains a custom shape ellipse. Select it and again click several times on the icon “Change Shape via Matrix” to apply the macro. The shape does not rotate around the corner.
Created attachment 67732 [details] test document with macro to apply a rotation matrix
Reproducible. Reassigned.
Reset assigne to the default "issues@openoffice.apache.org".