Apache OpenOffice (AOO) Bugzilla – Issue 109122
API: Path object does not resize via transformation matrix
Last modified: 2017-05-20 11:33:18 UTC
The attached document contains the macro “Change Shape via Matrix”. It reads the property “Transformation” from the selected shape, multiplies it with the matrix (1 -1 0 1 1 0 0 0 1) (read row wise) and writes the result back to the property. When applying the macro, the shape should perform a 45°-rotation and enlarge with factor sqrt(2). So when applying the macro twice you get a shape, which is rotated with 90° and has double size. 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 twice on the icon “Change Shape via Matrix”. You see that the shape rotates around the top left corner of the page and is enlarged. Now go to the second page. It contains a curve which looks like a ellipse. Select it and again click twice on the icon “Change Shape via Matrix” to apply the macro. You see, that the shape rotates around the corner but it is not enlarged. You will see the same error, if you use a polygon.
Created attachment 67735 [details] test document with macro to enlarge an object
Reproducible. Reassigned.
Reset assigne to the default "issues@openoffice.apache.org".