Apache OpenOffice (AOO) Bugzilla – Full Text Issue Listing |
Summary: | Remove property GraphicRotation | ||||||
---|---|---|---|---|---|---|---|
Product: | Writer | Reporter: | Regina Henschel <rb.henschel> | ||||
Component: | code | Assignee: | AOO issues mailing list <issues> | ||||
Status: | UNCONFIRMED --- | QA Contact: | |||||
Severity: | Minor | ||||||
Priority: | P3 | ||||||
Version: | 4.2.0-dev | ||||||
Target Milestone: | --- | ||||||
Hardware: | PC | ||||||
OS: | Windows, all | ||||||
Issue Type: | DEFECT | Latest Confirmation in: | --- | ||||
Developer Difficulty: | --- | ||||||
Attachments: |
|
Created attachment 83597 [details] container with test files with applied GraphicRotation and macro Select a Writer-picture and examine it with the Basic IDE. It supports the service SwXTextGraphicObject. The Basic IDE gives access to the property GraphicRotation, and you can set a value using a macro. Such macro is contained in file "Generated_by_AOO42.odt" in the attached zip-container. In former versions, at least till AOO3.4, this results in a rotation of the picture around the top-left corner of the clip-rectangle set by the crop feature. You can open the attached files in AOO3.4 to see this. Problems: (1) The value of GraphicRotation is written as "svg:transform" attribute of the draw:frame element. But ODF 1.2 does not allow such attribute. (2) The value is written in the meaning of "actual degree = value * 0.1", but SVG defines it as literal degree. (3) AOO4.2 does not render the rotation. (4) AOO4.2 writes the invalid attribute itself in a newly created document, if the value is applied by a macro. (5) The property GraphicRotation is not mentioned in the API. GraphicRotation should not be repaired in any kind, but superseded by a proper implementation of attribute draw:transform. BTW, you need a graphic with transparency in AOO3.4, otherwise you get rendering errors when using negative crop values. Therefore a picture with palette and defined transparent color is used in the attached examples.