Hi all,
I have started to work on issue 108739 [API: Shear angle has
mathematically wrong orinentation]. I have changed the shearing angle in
all the affected TRSet/GetBaseGeometry. Matrices set in draw:transform
or directly assigned to property Transformation work now for classical
rectangle and circle kinds and for custom shapes. [As far as I have
tested up to now.]
Polygons and Curves are sheared and the left top corner is at the right
position, but the objects have a wrong size.
I now assigned a matrix with only scaling to the property Transformation
and also use a draw:transform="matrix()", and again, the position is
correct, but the object has an unchanged size.
In SdrPathObj::TRSetBaseGeometry there is the comment,
"Given polygon is already scaled (for historical reasons), but not
mirrored yet."
But it seems, that the polygon needs to be resized. Shall I resize it here?
My idea would be to get the scaling from rPolyPolygon like it is done in
SdrPathObj::TRGetBaseGeometry and set the fraction new/old as scaling
into the matrix aTransform. (But I have not done it yet.)
kind regards
Regina
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]