sw/source/filter/html/htmlnumwriter.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 88c4dd990ae158fbc9a0d122a9fcbedd88cc6ec2
Author:     Mike Kaganski <mike.kagan...@collabora.com>
AuthorDate: Wed May 17 09:34:58 2023 +0200
Commit:     Mike Kaganski <mike.kagan...@collabora.com>
CommitDate: Wed May 17 11:43:32 2023 +0200

    Drop redundant condition
    
    Whenever (i != 0), this whole subcondition will be true; and (i != 0)
    can only be false when (nPrevDepth != 0) is also false.
    
    Change-Id: Icfd6dae3ecbbcd7307c42762d245d58725256c56
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151783
    Tested-by: Jenkins
    Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com>

diff --git a/sw/source/filter/html/htmlnumwriter.cxx 
b/sw/source/filter/html/htmlnumwriter.cxx
index 4875b90232e8..d3841e43eb38 100644
--- a/sw/source/filter/html/htmlnumwriter.cxx
+++ b/sw/source/filter/html/htmlnumwriter.cxx
@@ -213,7 +213,7 @@ SwHTMLWriter& OutHTML_NumberBulletListStart( SwHTMLWriter& 
rWrt,
 
         rWrt.m_aBulletGrfs[i].clear();
         OString sOut = "<" + rWrt.GetNamespace();
-        if (rWrt.mbXHTML && (nPrevDepth != 0 || i != 0))
+        if (rWrt.mbXHTML && i != 0)
         {
             sOut += OOO_STRING_SVTOOLS_HTML_li "><" + rWrt.GetNamespace();
         }

Reply via email to