From cef72944370015af03b92055d8f86cbf646a52f5 Mon Sep 17 00:00:00 2001 From: Maxim Monastirsky Date: Mon, 7 Nov 2016 01:45:19 +0200 Subject: Make the insert fields dialog not crash Change-Id: I6cd802f4ab07a647dcc3e8af49e578b041517006 --- sw/source/uibase/fldui/fldwrap.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sw/source/uibase/fldui') diff --git a/sw/source/uibase/fldui/fldwrap.cxx b/sw/source/uibase/fldui/fldwrap.cxx index f2fee6e4c260..153f15add5ac 100644 --- a/sw/source/uibase/fldui/fldwrap.cxx +++ b/sw/source/uibase/fldui/fldwrap.cxx @@ -81,7 +81,7 @@ SwFieldDlgWrapper::SwFieldDlgWrapper( vcl::Window* _pParent, sal_uInt16 nId, { SwAbstractDialogFactory* pFact = SwAbstractDialogFactory::Create(); assert(pFact && "SwAbstractDialogFactory fail!"); - AbstractSwFieldDlg* pDlg = pFact->CreateSwFieldDlg(pB, this, _pParent); + VclPtr pDlg = pFact->CreateSwFieldDlg(pB, this, _pParent); assert(pDlg && "Dialog creation failed!"); pDlgInterface = pDlg; SetWindow( pDlg->GetWindow() ); -- cgit