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

New commits:
commit 9d48831793cdbf93975b71083fbcc9577c17fceb
Author:     Baole Fang <baole.f...@gmail.com>
AuthorDate: Wed Feb 14 20:00:48 2024 -0500
Commit:     Adolfo Jayme Barrientos <fit...@ubuntu.com>
CommitDate: Tue Feb 20 22:13:08 2024 +0100

    tdf#159678: Fix heading dropdown list
    
    Change-Id: I65b6e6e5484f26b27e7851a6615550f527fcfb06
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163416
    Tested-by: Jenkins
    Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com>
    (cherry picked from commit 694b9b6422ee27da13ad455174cde50b1a673ac7)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163406
    Reviewed-by: Adolfo Jayme Barrientos <fit...@ubuntu.com>

diff --git a/sw/source/ui/fldui/flddok.cxx b/sw/source/ui/fldui/flddok.cxx
index 1a2857bedbdd..5cb38a38aca9 100644
--- a/sw/source/ui/fldui/flddok.cxx
+++ b/sw/source/ui/fldui/flddok.cxx
@@ -601,7 +601,7 @@ bool SwFieldDokPage::FillItemSet(SfxItemSet* )
         }
 
         case SwFieldTypesEnum::Chapter:
-            aVal = OUString::number(m_xLevelED->get_active());
+            aVal = m_xLevelED->get_active_text();
             break;
 
         default:

Reply via email to