diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-11-25 15:41:30 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-11-25 17:04:37 +0000 |
commit | 94ea966354609f8030872f1520ffbf910a9d28b4 (patch) | |
tree | ca900dfac517efb7514aad857a2107089651edd6 /sw/source/ui | |
parent | 8b718e3774f1ffb69f9aad565216556c798e95f4 (diff) |
tdf#104158 - Crash upon opening Table -> Number Format... in Writer
Change-Id: Ic5d30199250fbb5cc911cc5e7a58e0b7b9b1127c
Reviewed-on: https://gerrit.libreoffice.org/31201
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/ui')
-rw-r--r-- | sw/source/ui/dialog/swdlgfact.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/ui/dialog/swdlgfact.cxx b/sw/source/ui/dialog/swdlgfact.cxx index d19b2e7d7d8c..291d7f5627e2 100644 --- a/sw/source/ui/dialog/swdlgfact.cxx +++ b/sw/source/ui/dialog/swdlgfact.cxx @@ -647,7 +647,7 @@ VclPtr<SfxAbstractDialog> SwAbstractDialogFactory_Impl::CreateSfxDialog( vcl::Wi sal_uInt32 nResId ) { - SfxModalDialog* pDlg=nullptr; + VclPtr<SfxModalDialog> pDlg; switch ( nResId ) { case RC_DLG_ADDR : @@ -667,7 +667,7 @@ VclPtr<SfxAbstractDialog> SwAbstractDialogFactory_Impl::CreateSfxDialog( vcl::Wi } if ( pDlg ) - VclPtr<SwAbstractSfxDialog_Impl>::Create( pDlg ); + return VclPtr<SwAbstractSfxDialog_Impl>::Create( pDlg ); return nullptr; } |