diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-01-14 11:41:58 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-01-18 22:19:07 +0100 |
commit | c198a0cf08ee251ca75c5ea5ad3297d9cede2667 (patch) | |
tree | 1241d0be806179406c6b4727ecfb0c732fdd9dea | |
parent | 6ae00fc24786eac379e6e64ac3e6d83c6a057b24 (diff) |
tdf#146747 InternalItems has to be null terminated
Change-Id: I15c0afdcae3e9bc1412e6564c15df2196515052e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128427
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | sw/source/ui/chrdlg/numpara.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/ui/chrdlg/numpara.cxx b/sw/source/ui/chrdlg/numpara.cxx index 272763a43b56..00e9a3b607bd 100644 --- a/sw/source/ui/chrdlg/numpara.cxx +++ b/sw/source/ui/chrdlg/numpara.cxx @@ -323,8 +323,9 @@ bool SwParagraphNumTabPage::ExecuteEditNumStyle_Impl( weld::Window* pDialogParent = GetFrameWeld(); css::uno::Any aAny(pDialogParent->GetXWindow()); SfxUnoAnyItem aDialogParent(SID_DIALOG_PARENT, aAny); - const SfxPoolItem* pInternalItems[ 1 ]; + const SfxPoolItem* pInternalItems[ 2 ]; pInternalItems[ 0 ] = &aDialogParent; + pInternalItems[ 1 ] = nullptr; const SfxPoolItem* pItem = rDispatcher.Execute( nId, SfxCallMode::SYNCHRON | SfxCallMode::RECORD, |