summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2023-08-11 12:08:14 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2023-08-11 14:15:44 +0200
commit996890180dc143df1de97072c81799ec1f1de083 (patch)
tree94cf7b68ff1234d2b1646943e9ebb10c5260fb55 /oox
parent5af44a176d2a738dd7523713202aeee27c5578b6 (diff)
reduce noise in debug logs
Only set this property if the object supports it Change-Id: If3adf76bbab5393e20a685b1af5016624c28fa79 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155583 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'oox')
-rw-r--r--oox/source/drawingml/textparagraphproperties.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/oox/source/drawingml/textparagraphproperties.cxx b/oox/source/drawingml/textparagraphproperties.cxx
index df3d36a21003..949ee3f22d6b 100644
--- a/oox/source/drawingml/textparagraphproperties.cxx
+++ b/oox/source/drawingml/textparagraphproperties.cxx
@@ -420,7 +420,8 @@ void TextParagraphProperties::pushToPropSet( const ::oox::core::XmlFilterBase* p
}
else if ( pMasterBuList && pMasterBuList->mnNumberingType.hasValue() )
pMasterBuList->mnNumberingType >>= nNumberingType;
- if ( nNumberingType == NumberingType::NUMBER_NONE )
+ if ( nNumberingType == NumberingType::NUMBER_NONE
+ && aPropSet.hasProperty(PROP_NumberingLevel) )
aPropSet.setProperty< sal_Int16 >( PROP_NumberingLevel, -1 );
maBulletList.pushToPropMap( pFilterBase, rioBulletMap );