https://bugs.documentfoundation.org/show_bug.cgi?id=168337
Bug ID: 168337
Summary: ODF: missing attribute draw:escape-direction of
draw:glue-point
Product: LibreOffice
Version: 26.2.0.0 alpha0+ master
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: filters and storage
Assignee: [email protected]
Reporter: [email protected]
Created attachment 202766
--> https://bugs.documentfoundation.org/attachment.cgi?id=202766&action=edit
Example with user defined glue-point
Open the attached file. It contains a circle and a rectangle with a user
defined glue-point in the center. The circle has the draw:escape-direction
"up", for the rectangle no escape-direction was set.
Validate the file with https://odfvalidator.org/
The validator complains about a missing attribute "escape-direction". The
complain is correct because the attribute is not optional and LibreOffice has
indeed not written the attribute.
https://docs.oasis-open.org/office/OpenDocument/v1.4/cs01/schemas/OpenDocument-v1.4-schema.rng.
(Search for "draw:escape:direction")
The attribute corresponds to the API enum drawing:EscapeDirection. If the user
does not set a direction, this is the enum value
drawing::EscapeDirection_SMART. In case of value SMART, LibreOffice does not
write the attribute draw:escape-direction. But LibreOffice needs to write the
attribue with value "auto" in this case.
The error is in
https://opengrok.libreoffice.org/xref/core/xmloff/source/draw/shapeexport.cxx?r=9b79ae1161af42d7a54e34a1dbcf78831acab86d#1315
I propose this as easy-hack. The code part is easy. A unit test can go to
core/xmloff/qa/unit/draw.cxx. That file has already some examples, where you
can see how to use assertXPath. Some knowledge about XML is useful.
--
You are receiving this mail because:
You are the assignee for the bug.