https://issues.apache.org/ooo/show_bug.cgi?id=118840
--- Comment #34 from Armin Le Grand <[email protected]> --- ALG: In the current source the cloning happens in two steps: (1) pObj->Clone(); (2) pNeuObj->SetModel( pNeuMod ); Step (1) clones an SdrOle2Obj to the same model, so does not copy the data of the chart since the DataProvider, the model and the sheet are the same. This is correct and doing something else would make a such cloned chart in calc not listen to it's data in the sheet. This step also saves the chart to a persist stream. Step(2) then copies the OLE to another model by moving that persist to another model container. Also correct so far. Both in combination make step (2) miss that the chart data was not copied. Annotation: in aw080 the relationship between object and model is a life-long, unchangeable operation already, objects can only be cloned *to* a target model. Here this problem would not occur... As a result, the chart data gets not copied. Checking what could be done to make this work. There is no short, direct way to get away from that two-step cloning process in the current code... -- You are receiving this mail because: You are on the CC list for the bug. You are the assignee for the bug.
