sw/source/filter/ww8/wrtw8num.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit efd2510e225232ac35707a3ed55b83be9fa046af
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Sun Nov 7 15:49:14 2021 +0000
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Sun Nov 7 18:17:05 2021 +0100

    crashtesting: assert on re-exporting ooo25141-1.doc to doc
    
    since...
    
    commit e0b41fcb56e51f20684da4ba44d7ed6e0e1a3234
    Date:   Thu Oct 28 13:36:50 2021 +0300
    
        tdf#144668: docx export: simpler way to create lvlText in numberings
    
    Change-Id: I40b3cdf5e15d3a4dacc50bd46a5bbca84e6fac03
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124822
    Tested-by: Jenkins
    Tested-by: Caolán McNamara <caol...@redhat.com>
    Reviewed-by: Caolán McNamara <caol...@redhat.com>

diff --git a/sw/source/filter/ww8/wrtw8num.cxx 
b/sw/source/filter/ww8/wrtw8num.cxx
index bb61901d24ae..857007872cea 100644
--- a/sw/source/filter/ww8/wrtw8num.cxx
+++ b/sw/source/filter/ww8/wrtw8num.cxx
@@ -473,7 +473,8 @@ void MSWordExportBase::NumberingLevel(
     else
     {
         // Create level string
-        if (SVX_NUM_NUMBER_NONE != rFormat.GetNumberingType())
+        if (SVX_NUM_NUMBER_NONE != rFormat.GetNumberingType() &&
+            rFormat.HasListFormat())
         {
             sal_uInt8* pLvlPos = aNumLvlPos;
             sNumStr = rFormat.GetListFormat();

Reply via email to