https://issues.apache.org/ooo/show_bug.cgi?id=125153
Issue ID: 125153
Issue Type: DEFECT
Summary: Remove property GraphicRotation
Product: Writer
Version: 4.2.0-dev
Hardware: PC
OS: Windows, all
Status: UNCONFIRMED
Severity: minor
Priority: P3
Component: code
Assignee: [email protected]
Reporter: [email protected]
Created attachment 83597
--> https://issues.apache.org/ooo/attachment.cgi?id=83597&action=edit
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.
--
You are receiving this mail because:
You are the assignee for the issue.
You are watching all issue changes.