Hello,
I'm giving a try to tdf#130681 (Charts disappear when saving docx as odt)
and it seems we got a problem with embedding objects management.
The test file of this bugtracker contains 4 graphs and when opening it, I
see there are 16 calls to EmbeddedObjectContainer::AddEmbeddedObject
(see
https://opengrok.libreoffice.org/xref/core/comphelper/source/container/embeddedobjectcontainer.cxx?r=242e1c42#404)
In fact for each graph, this method is called 4 times:
1) comphelper::EmbeddedObjectContainer::CreateEmbeddedObject via
SvxOle2Shape::createObject
2) comphelper::EmbeddedObjectContainer::InsertEmbeddedObject via
SwXFrame::attachToRange
3) EmbeddedObjectContainer::InsertEmbeddedObject this time via
SwOLEObj::SetNode <- SwOLENode::SwOLENode <- SwNodes::MakeOLENode <-
sw::DocumentContentOperationsManager::InsertEmbObject <-
SwXFrame::attachToRange
(the same as 2) )
4) EmbeddedObjectContainer::InsertEmbeddedObject this time via
comphelper::EmbeddedObjectContainer::RemoveEmbeddedObject
I don't know the embedded object management, so why not for the 3 first but
the last one seems to break the object numbering, see
https://bugs.documentfoundation.org/show_bug.cgi?id=130681#c14
To be sure, I disabled part of 4) see
https://bugs.documentfoundation.org/show_bug.cgi?id=130681#c15)
Any thoughts here?
Julien
--
Sent from: http://document-foundation-mail-archive.969070.n3.nabble.com/Dev-f1639786.html
Context
- Need some help about tdf#130681 (Charts disappear when saving docx as odt) · julien2412
 
   
 
  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.