Hi Christina,
Christina Roßmanith schrieb:
Hi,
if you add text (e.g. "abc") to a shape like a smiley, save the
document, delete the text and save again the text is still present in
the saved file. Closing the drawing isn't necessary.
If you don't save the drawing after adding the text but delete the text
and save the drawing afterwards the text isn't present in the written file.
In shapeexport.cxx at line 242 "if(xText.is() &&
!xText->getString().isEmpty())" xText->getString() evaluates to "abc"
if the drawing was saved even if the text was deleted. So I guess
"something happens to the text" during saving (because saving is
necessary to trigger the wrong behaviour) and this something isn't
updated properly if the text is deleted.
Saving is not necessary. As I commented in the issue, you can see when
you look at the shape with a macro, that the content is not erased.
The error is not in load/save but must be somewhere earlier.
Kind regards
Regina
Context
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.