summaryrefslogtreecommitdiff
path: root/sd/source/ui/unoidl/unocpres.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sd/source/ui/unoidl/unocpres.cxx')
-rw-r--r--sd/source/ui/unoidl/unocpres.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sd/source/ui/unoidl/unocpres.cxx b/sd/source/ui/unoidl/unocpres.cxx
index c2d7bd5230ea..61cddf6c2929 100644
--- a/sd/source/ui/unoidl/unocpres.cxx
+++ b/sd/source/ui/unoidl/unocpres.cxx
@@ -108,7 +108,7 @@ void SAL_CALL SdXCustomPresentation::insertByIndex( sal_Int32 Index, const uno::
mpModel = pPage->GetModel();
if( nullptr != mpModel && nullptr == mpSdCustomShow && mpModel->GetDoc() )
- mpSdCustomShow = new SdCustomShow( mpModel->GetDoc() );
+ mpSdCustomShow = new SdCustomShow;
mpSdCustomShow->PagesVector().insert(mpSdCustomShow->PagesVector().begin() + Index,
static_cast<SdPage*>(pPage->GetSdrPage()));
@@ -349,7 +349,7 @@ void SAL_CALL SdXCustomPresentationAccess::insertByName( const OUString& aName,
SdCustomShow* pShow = pXShow->GetSdCustomShow();
if( nullptr == pShow )
{
- pShow = new SdCustomShow( mrModel.GetDoc(), xContainer );
+ pShow = new SdCustomShow( xContainer );
pXShow->SetSdCustomShow( pShow );
}
else