diff options
author | Maxim Monastirsky <momonasmon@gmail.com> | 2016-11-07 01:45:19 +0200 |
---|---|---|
committer | Maxim Monastirsky <momonasmon@gmail.com> | 2016-11-07 01:47:39 +0200 |
commit | cef72944370015af03b92055d8f86cbf646a52f5 (patch) | |
tree | 7d1311804129ba0da1dc0fcadabfc1f683cd1930 /sw | |
parent | 0b9298bf50eb104b684207e10987144c058421ea (diff) |
Make the insert fields dialog not crash
Change-Id: I6cd802f4ab07a647dcc3e8af49e578b041517006
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/uibase/fldui/fldwrap.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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<AbstractSwFieldDlg> pDlg = pFact->CreateSwFieldDlg(pB, this, _pParent); assert(pDlg && "Dialog creation failed!"); pDlgInterface = pDlg; SetWindow( pDlg->GetWindow() ); |