[Libreoffice-bugs] [Bug 130681] Charts disappear when saving docx as odt

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Sun Feb 16 08:54:24 UTC 2020


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

--- Comment #15 from Julien Nabet <serval2412 at yahoo.fr> ---
With this change:
diff --git a/svx/source/svdraw/svdoole2.cxx b/svx/source/svdraw/svdoole2.cxx
index fe137647b01b..7f7f77f477b3 100644
--- a/svx/source/svdraw/svdoole2.cxx
+++ b/svx/source/svdraw/svdoole2.cxx
@@ -1136,6 +1136,7 @@ void SdrOle2Obj::Disconnect_Impl()
             {
                 if ( getSdrModelFromSdrObject().getUnoModel().is() )
                 {
+/*
                     // remove object, but don't close it (that's up to someone
else)
                     comphelper::EmbeddedObjectContainer* pContainer =
mpImpl->mxObjRef.GetContainer();
                     if ( pContainer )
@@ -1147,6 +1148,7 @@ void SdrOle2Obj::Disconnect_Impl()
                         // since no container is adjusted, actually the empty
string could be provided as a name here
                         mpImpl->mxObjRef.AssignToContainer( nullptr,
mpImpl->aPersistName );
                     }
+*/

                     DisconnectFileLink_Impl();
                 }

when converting to odt and reopening odt, everything is fine.
Of course, it's just a test, this patch must be wrong, it just shows there's
something indeed broken in object naming.

-- 
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/20200216/7dd143ae/attachment.htm>


More information about the Libreoffice-bugs mailing list