diff options
author | Michael Meeks <michael.meeks@novell.com> | 2011-03-15 13:50:53 +0000 |
---|---|---|
committer | Michael Meeks <michael.meeks@novell.com> | 2011-03-15 13:50:53 +0000 |
commit | 9bc1a8fe48806bbac44da9565158dce355cddf0b (patch) | |
tree | cde3dfbd0e942de819349c367f910e78ef34844f /sw/source/core/ole | |
parent | 5d5a1348bb9a63ecd7d840116f2577231a89dd08 (diff) |
fix compile with debug enabled
Diffstat (limited to 'sw/source/core/ole')
-rw-r--r-- | sw/source/core/ole/ndole.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/ole/ndole.cxx b/sw/source/core/ole/ndole.cxx index de3945b25e8a..fd80b1ec4b0a 100644 --- a/sw/source/core/ole/ndole.cxx +++ b/sw/source/core/ole/ndole.cxx @@ -429,8 +429,8 @@ SwCntntNode* SwOLENode::MakeCopy( SwDoc* pDoc, const SwNodeIndex& rIdx ) const { // TODO/LATER: is EmbeddedObjectContainer not enough? // the created document will be closed by pDoc ( should use SfxObjectShellLock ) - OSL_ENSURE( pDoc->GetRefForDocShell(), - "wo ist die Ref-Klasse fuer die DocShell?"); + pPersistShell = new SwDocShell( pDoc, SFX_CREATE_MODE_INTERNAL ); + pDoc->SetTmpDocShell( pPersistShell ); pPersistShell->DoInitNew( NULL ); } |