sw/source/uibase/shells/txtnum.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 41d26f14fffdb701f6e7ef459a11577725cd0d27
Author:     Samuel Mehrbrodt <[email protected]>
AuthorDate: Thu Jun 20 08:25:46 2024 +0200
Commit:     Samuel Mehrbrodt <[email protected]>
CommitDate: Thu Jun 20 09:42:31 2024 +0200

    tdf#161653 Fix selecting from numbering dropdown
    
    Change-Id: I5ba2133395619ec96b32940a6ceddf0c32615a03
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169252
    Tested-by: Jenkins
    Reviewed-by: Samuel Mehrbrodt <[email protected]>

diff --git a/sw/source/uibase/shells/txtnum.cxx 
b/sw/source/uibase/shells/txtnum.cxx
index 86aa9a6b224e..0941c702ff55 100644
--- a/sw/source/uibase/shells/txtnum.cxx
+++ b/sw/source/uibase/shells/txtnum.cxx
@@ -261,6 +261,8 @@ void SwTextShell::ExecSetNumber(SfxRequest const &rReq)
     case FN_SVX_SET_OUTLINE:
         {
             const SfxUInt16Item* pIndexItem = rReq.GetArgs()->GetItem( 
SID_ATTR_BULLET_INDEX );
+            if (!pIndexItem) // tdf#161653
+                pIndexItem = rReq.GetArg<SfxUInt16Item>(nSlot);
             const SfxStringItem* pCharItem = rReq.GetArgs()->GetItem( 
SID_ATTR_BULLET_CHAR );
             const SfxStringItem* pFontItem = rReq.GetArgs()->GetItem( 
SID_ATTR_BULLET_FONT );
 

Reply via email to