[Libreoffice-commits] core.git: sw/source

Maxim Monastirsky momonasmon at gmail.com
Sun Nov 6 23:48:24 UTC 2016


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

New commits:
commit cef72944370015af03b92055d8f86cbf646a52f5
Author: Maxim Monastirsky <momonasmon at 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() );


More information about the Libreoffice-commits mailing list