[Libreoffice-bugs] [Bug 113494] New: FILESAVE: New feature image rotation uses wrong value in transformation attribute
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Sat Oct 28 14:22:04 UTC 2017
https://bugs.documentfoundation.org/show_bug.cgi?id=113494
Bug ID: 113494
Summary: FILESAVE: New feature image rotation uses wrong value
in transformation attribute
Product: LibreOffice
Version: 6.0.0.0.alpha1+ Master
Hardware: x86 (IA32)
OS: Windows (All)
Status: UNCONFIRMED
Severity: normal
Priority: high
Component: Writer
Assignee: libreoffice-bugs at lists.freedesktop.org
Reporter: rb.henschel at t-online.de
Insert an image in a text document and rotate it by 30°. Save document. Unpack
it and examine the attribute "transform" of the <draw:frame> element of the
image.
LibreOffice has a distinction between an image as SwXTextGraphicObject or as
SwXShape. ODF 1.2 has no such distinction. In both cases the file format has a
<draw:frame> element with <draw:image> child element and a style of family
"graphic".
That means, that from the view of the file format the attributes of a rotated
image derived from a SwXshape have to be the same as derived from a
SwXTextGraphicObject. Every converting needed for the internal model has to be
done outside of those attributes, which are saved/loaded to/from file.
That is not the case in the new feature of rotating a text graphic in Writer.
Example: Using 30deg as rotation angle in the UI results in the attribute
draw:transform="rotate(300)".
This is wrong in two aspects:
(1) The rotation angle should be in radians, but it is in 1/10degree.
(2) Rotations are done around coordinate system origin, and to get the rotated
object to the correct position an additional translate-transformation is
necessary.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20171028/0ead4e0a/attachment.html>
More information about the Libreoffice-bugs
mailing list