sw/source/uibase/fldui/fldwrap.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit cef72944370015af03b92055d8f86cbf646a52f5
Author: Maxim Monastirsky <momonas...@gmail.com>
Date:   Mon Nov 7 01:45:19 2016 +0200

    Make the insert fields dialog not crash
    
    Change-Id: I6cd802f4ab07a647dcc3e8af49e578b041517006

diff --git a/sw/source/uibase/fldui/fldwrap.cxx 
b/sw/source/uibase/fldui/fldwrap.cxx
index f2fee6e..153f15a 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() );
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to