diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-11-23 17:27:20 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-11-23 20:42:55 +0100 |
commit | 88afa134df87119fb23793543a15c23432b94cb2 (patch) | |
tree | fbbecb91e9423a695800ff04e940e9610e069b00 /sw/source/ui/chrdlg | |
parent | 62924b92d6737579cc4709b410d311251d4e5517 (diff) |
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 <caolanm@redhat.com>
Diffstat (limited to 'sw/source/ui/chrdlg')
-rw-r--r-- | sw/source/ui/chrdlg/numpara.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
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 |