[Libreoffice-bugs] [Bug 141892] The type of an embedded chart in Writer is missing

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Tue Apr 27 08:54:56 UTC 2021


https://bugs.documentfoundation.org/show_bug.cgi?id=141892

--- Comment #8 from Mike Kaganski <mikekaganski at hotmail.com> ---
This is not a problem of an invalid format (the issue reported by ODF validator
is unrelated). This is about the placement of the object's document stream.

The generator puts chart's <office:document> as a child of <draw:object> right
inside content.xml (absolutely valid case). When re-saved from v.7.0, the chart
is placed into its own *.xml under Object N subdirectory inside the ODF
package. This changes the moment when the chart's XML is read to after the full
document model creation, and at that case, the document already allows setting
modified flag.

This problem may also be reproduced with any chart in a text document, even
generated by 7.1, if you save it as FODT - which uses the same
<office:document> directly in <draw:object> approach.

It seems that current import code abuses some side effect of setting the object
modified, where that side effect makes additional changes somewhere in the
chart's model; while that change in the model should be made explicitly at some
point of reading the XML. I don't know which property is that.

-- 
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/20210427/4e878be1/attachment.htm>


More information about the Libreoffice-bugs mailing list