sw/source/ui/chrdlg/numpara.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 88afa134df87119fb23793543a15c23432b94cb2
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Tue Nov 23 17:27:20 2021 +0000
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Tue Nov 23 20:42:55 2021 +0100

    Resolves: tdf#145804 show "Chapter Numbering" as (uneditable) list style
    
    Change-Id: I394d1e7d51a5008c1cc02e0c65df28df6acbe98c
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125730
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caol...@redhat.com>

diff --git a/sw/source/ui/chrdlg/numpara.cxx b/sw/source/ui/chrdlg/numpara.cxx
index 95b533c9c6bb..425bbc56a895 100644
--- a/sw/source/ui/chrdlg/numpara.cxx
+++ b/sw/source/ui/chrdlg/numpara.cxx
@@ -184,10 +184,10 @@ void SwParagraphNumTabPage::Reset(const SfxItemSet* rSet)
 
         if( aStyle == "Outline")
         {
-            //add it, select it, remove it ? do we really want set_active(-1) 
instead ?
+            // tdf#145804 show "Chapter Numbering"
+            assert(!m_xNumberStyleBX->get_sensitive() && "pseudo entry 
shouldn't be editable");
             m_xNumberStyleLB->append_text(msOutlineNumbering);
             m_xNumberStyleLB->set_active_text(msOutlineNumbering);
-            m_xNumberStyleLB->remove_text(msOutlineNumbering);
             m_xNumberStyleLB->save_value();
         }
         else

Reply via email to