https://issues.apache.org/ooo/show_bug.cgi?id=123914

--- Comment #11 from Armin Le Grand <[email protected]> ---
It also works when forcing bCallInitNew to true in SwDoc::CreateCopy; then the
SfxObjectShell pRetShell prepared there seems so far prepared that
SwOLENode::MakeCopy does not need to create and set an own SwDocShell using
SetTmpDocShell and all is good; but this would require to know that OLEs are
included and this is needed before the Paste call.
It would also work to use any instance of a class that holds a reference to
SwDoc during the call to SetTmpDocShell(NULL), or simply use the (surprisingly
public) methods SwDoc::acquire and SwDoc::release (again surprisingly not
initiating the self-destruction of the SwDoc on getting to zero). All this only
needed when testing GetTmpDocShell is non-zero. Checking this...

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
You are watching all bug changes.

Reply via email to