diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-10-27 14:32:52 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-10-27 14:33:30 +0100 |
commit | f6ff0c237bde50d1fab6b19d87000038b6f3f042 (patch) | |
tree | ce824555585759bdc842be15cda635f727041c0a | |
parent | 3e12ef2cbb54a48b1e925a427d5daa05e5f797e3 (diff) |
fix writer insert caption crash
since...
commit eca5ea9f79181d45cd7fbabe2313617d3025818a
Date: Wed Sep 21 14:48:15 2016 +0200
Change-Id: I69b50df0ec19369fcd96d7d184c6d5f586a50b25
-rw-r--r-- | sw/source/uibase/uiview/viewdlg2.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/uibase/uiview/viewdlg2.cxx b/sw/source/uibase/uiview/viewdlg2.cxx index 82adfbe5082a..ae34348f35bf 100644 --- a/sw/source/uibase/uiview/viewdlg2.cxx +++ b/sw/source/uibase/uiview/viewdlg2.cxx @@ -54,7 +54,7 @@ void SwView::ExecDlgExt(SfxRequest &rReq) SwAbstractDialogFactory* pFact = SwAbstractDialogFactory::Create(); assert(pFact && "SwAbstractDialogFactory fail!"); - std::unique_ptr<VclAbstractDialog> pDialog(pFact->CreateSwCaptionDialog( pMDI, *this )); + ScopedVclPtr<VclAbstractDialog> pDialog(pFact->CreateSwCaptionDialog( pMDI, *this )); assert(pDialog && "Dialog creation failed!"); if ( pDialog ) { @@ -66,7 +66,7 @@ void SwView::ExecDlgExt(SfxRequest &rReq) { SwAbstractDialogFactory* pFact = SwAbstractDialogFactory::Create(); assert(pFact && "Dialog creation failed!"); - std::unique_ptr<AbstractInsFootNoteDlg> pDlg(pFact->CreateInsFootNoteDlg( + ScopedVclPtr<AbstractInsFootNoteDlg> pDlg(pFact->CreateInsFootNoteDlg( pMDI, *m_pWrtShell, true)); assert(pDlg && "Dialog creation failed!"); |