oox/source/drawingml/textparagraphproperties.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 996890180dc143df1de97072c81799ec1f1de083
Author:     Noel Grandin <noel.gran...@collabora.co.uk>
AuthorDate: Fri Aug 11 12:08:14 2023 +0200
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Fri Aug 11 14:15:44 2023 +0200

    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.gran...@collabora.co.uk>

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 );

Reply via email to