Issue 109127 - API: measure line react wrong on rotate and resizing matrix
Summary: API: measure line react wrong on rotate and resizing matrix
Status: CONFIRMED
Alias: None
Product: Draw
Classification: Application
Component: code (show other issues)
Version: DEV300m70
Hardware: PC Windows XP
: P3 Trivial (vote)
Target Milestone: AOO Later
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-10 19:56 UTC by Regina Henschel
Modified: 2020-11-15 19:14 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
test document with a macro to rotate and resize (12.94 KB, application/vnd.oasis.opendocument.graphics)
2010-02-10 19:57 UTC, Regina Henschel
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description Regina Henschel 2010-02-10 19:56:28 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.

Open the attached document and select the measure line. Apply the macro several
times. Watch that the measure line rotates and resizes one time, but then no more.
Comment 1 Regina Henschel 2010-02-10 19:57:48 UTC
Created attachment 67738 [details]
test document with a macro to rotate and resize
Comment 2 wolframgarten 2010-02-11 09:34:48 UTC
Reproducible. Reassigned.
Comment 3 Marcus 2017-05-20 11:33:16 UTC
Reset assigne to the default "issues@openoffice.apache.org".
Comment 4 Regina Henschel 2020-11-15 19:12:33 UTC
It seems to be an implementation error in TRSetBaseGeometry and TRGetBaseGeometry, done in bug 97878.
The intension was, to handle the matrix operations same as path objects. But for that purpose the second parameter is missing. Currently the matrix is applied to a line from (0|0) to (1|0) in TRSetBaseGeometry, but the matrix from TRGetBaseGeometry does only contain scale and translate. Thus a chain of these matrix operations does not work.