Created attachment 178765 [details] Document contains macros to rotate a shape Currently the service RotationDescriptor is deprecated with the hint to use the Transformation property instead. But using the Transformationmatrix from the shape is a huge effort, if you only want to rotate a shape around its center. The attached file contains the macro "impl_zRotation" which uses the deprecated service and the macro "impl_zRotationTransformation" which uses the property Transformation instead. Even if you do not understand the details, you will see how complicated a solution with property Transformation is. The service RotationDescriptor works fine, only the Description in the API documentation needs to be improved so that it is clear to the user, what he gets. The problem with property Transformation is, that you do not get the transformed shape, when you apply the Transformation matrix to the shape in unit size. The matrix which you get by property Transformation has a wrong sign in the shear value. Even if we add a new property for a mathematical correct Transformation matrix (we should do that), rotation around shape center (as done by setting RotateAngle of service RotationDescriptor) is cumbersome. You need to calculate the shape center, apply a translation to origin, rotate, and translate back. That are four matrix multiplication whereas with RotateAngle it is a single assignment.
FTR: the deprecation appeared in commit 908f660fae12469cc7f4aa0b31a2f060427a3382.
I'm seeing no objections, so setting to NEW
Dear Regina Henschel, To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year. There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present. If you have time, please do the following: Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/ If the bug is present, please leave a comment that includes the information from Help - About LibreOffice. If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice. Please DO NOT Update the version field Reply via email (please reply directly on the bug tracker) Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not appropriate in this case) If you want to do more to help you can test to see if your issue is a REGRESSION. To do so: 1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/ 2. Test your bug 3. Leave a comment with your results. 4a. If the bug was present with 3.3 - set version to 'inherited from OOo'; 4b. If the bug was not present in 3.3 - add 'regression' to keyword Feel free to come ask questions or to say hello in our QA chat: https://web.libera.chat/?settings=#libreoffice-qa Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-UntouchedBug
The request is still valid. The API part is https://api.libreoffice.org/docs/idl/ref/servicecom_1_1sun_1_1star_1_1drawing_1_1RotationDescriptor.html