summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-11-07 15:49:14 +0000
committerCaolán McNamara <caolanm@redhat.com>2021-11-07 18:17:05 +0100
commitefd2510e225232ac35707a3ed55b83be9fa046af (patch)
tree110d1a5e417816bdd526e2041bfc0a4da08a96df
parent0d4c1cc6ea39404c4ad1c8abe0d70dabcac1e017 (diff)
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 <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--sw/source/filter/ww8/wrtw8num.cxx3
1 files changed, 2 insertions, 1 deletions
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();