summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Monastirsky <momonasmon@gmail.com>2016-11-07 01:45:19 +0200
committerMaxim Monastirsky <momonasmon@gmail.com>2016-11-07 01:47:39 +0200
commitcef72944370015af03b92055d8f86cbf646a52f5 (patch)
tree7d1311804129ba0da1dc0fcadabfc1f683cd1930
parent0b9298bf50eb104b684207e10987144c058421ea (diff)
Make the insert fields dialog not crash
Change-Id: I6cd802f4ab07a647dcc3e8af49e578b041517006
-rw-r--r--sw/source/uibase/fldui/fldwrap.cxx2
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() );