Need some help about tdf#130681 (Charts disappear when saving docx as odt)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
_______________________________________________
LibreOffice mailing list
LibreOffice@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/libreoffice



[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux