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

New commits:
commit f2c581c7b603eb7c3d93af2e685e300d5aec5ae6
Author:     Justin Luth <jl...@mail.com>
AuthorDate: Thu Mar 2 10:18:43 2023 -0500
Commit:     Justin Luth <jl...@mail.com>
CommitDate: Thu Mar 2 17:58:40 2023 +0000

    tdf#62032 sw List Level UI: don't require old value
    
    I added the qualification at the last minute,
    in imitation of other properties which according
    to coverity scans could actually hit the qualifier.
    
    Well, as Seth's testing shows, very often there is no
    such oldvalue (for example on the default paragraph style),
    and so this should not prevent us from setting something.
    
    I can imagine that editEng paragraphs could issue an exception
    if we try to set this property. However, in the testing I did
    (against a comment's paragraph) this tab page did
    not come up.
    
    Change-Id: I0fcc45d100b01716b87316c1bbb9f69eb7c577f3
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148129
    Tested-by: Jenkins
    Reviewed-by: Justin Luth <jl...@mail.com>

diff --git a/sw/source/ui/chrdlg/numpara.cxx b/sw/source/ui/chrdlg/numpara.cxx
index 0a3329045016..76c2f27ef472 100644
--- a/sw/source/ui/chrdlg/numpara.cxx
+++ b/sw/source/ui/chrdlg/numpara.cxx
@@ -127,7 +127,7 @@ bool SwParagraphNumTabPage::FillItemSet( SfxItemSet* rSet )
 
     if (m_xListLvLB->get_value_changed_from_saved())
     {
-        if (m_xListLvBX->get_visible() && GetOldItem(*rSet, 
RES_PARATR_LIST_LEVEL))
+        if (m_xListLvBX->get_visible())
         {
             sal_Int16 nListLevel = m_xListLvLB->get_active();
             // Does List Level need to be set to be the same as Outline Level?

Reply via email to