[Libreoffice-bugs] [Bug 137596] New: FILESAVE FILEOPEN Text in embedded Draw objects is lost when reading a FODT

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Mon Oct 19 13:03:15 UTC 2020


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

            Bug ID: 137596
           Summary: FILESAVE FILEOPEN Text in embedded Draw objects is
                    lost when reading a FODT
           Product: LibreOffice
           Version: 6.4.7.2 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: woundorf at gmail.com

Description:
With recent versions of LibreOffice (since 6.4.7.* at least), if you save a
Flat ODT with an embedded Draw object that contains a shape with text, then
this text is not loaded when this file is opened later. The text is not even
loaded with older versions of LibreOffice, although the text is in the file.
See steps to reproduce and actual and expected results for an example that will
be easier to understand.

More details:

- The text is actually in the XML, it's just that LibreOffice doesn't read it.
Then, if you modify the file and save it, then the text is lost.
- This happens only with fodt, with normal odt it works well.
- If a text box is used instead of a shape, there is no problem.
- This happens when saving the file with LibreOffice 6.4 and later (tried with
6.4 and 7.0). A file saved with these versions of LibreOffice will open without
text even in previous versions of LibreOffice. However if the file is saved
with LibreOffice 6.3 or previous, it opens well in all versions.

When saved with LibreOffice 6.4 or later, the automatic style for the shape
(named "gr1" for the first shape) contains the following child element:

<style:paragraph-properties style:writing-mode="lr-tb"/>

When this is present in the automatic style of a shape, the text is not read by
any version of LibreOffice. If this is removed with a text editor, then the
text is correctly read by all versions of LibreOffice. This child element is
not created with older versions of LibreOffice. This tag also appears in
automatic styles of text boxes, but in that case there is no problem.

Steps to Reproduce:
1. Open LibreOffice Writer
2. Insert > Object > OLE object…
3. LibreOffice <version> Drawing
4. Draw a rectangle
5. Write some text in it
6. Click outside of the drawing area to return to the text document
7. Save the document as fodt
8. Close the document
9. Open it again

Actual Results:
The rectangle is shown without text. If you double click to edit it, the text
is not there.

Expected Results:
It should be like when it was saved, showing a rectangle with text.


Reproducible: Always


User Profile Reset: No



Additional Info:
Versió: 6.4.7.2
ID de la construcció: 6.4.7.2-1.fc32
Fils de CPU: 8; SO: Linux 5.8; Renderitzador de la IU: per defecte; VCL: gtk3; 
Configuració local: ca-ES (ca_AD.UTF-8); Llengua de la IU: ca-ES
Calc: threaded

This is the specific version in the computer from which I am writing the bug
report, but I can reproduce the bug also in other Windows, Mac and Linux
machines and with other versions. Enabling or disabling OpenGL does not change
the behaviour.

-- 
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/20201019/0bfa78e6/attachment-0001.htm>


More information about the Libreoffice-bugs mailing list