writerfilter/source/dmapper/DomainMapper_Impl.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 1a6530787579fe466a67a98ef1f1a2087715a1b2
Author:     Justin Luth <justin_l...@sil.org>
AuthorDate: Thu Sep 2 09:40:56 2021 +0200
Commit:     Justin Luth <justin_l...@sil.org>
CommitDate: Fri Sep 3 08:30:19 2021 +0200

    related tdf#137363: no NUMBERING_LEVEL 9(no-level) in para
    
    Remove the (fake) 9 from the direct paragraph formatting.
    Otherwise when numbering is applied it will start at level
    10 instead of the proper level (as defined by the style).
    
    Change-Id: I26fdff36e4f3d3449a259918a7c57a76bae7d486
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121503
    Tested-by: Jenkins
    Reviewed-by: Justin Luth <justin_l...@sil.org>

diff --git a/writerfilter/source/dmapper/DomainMapper_Impl.cxx 
b/writerfilter/source/dmapper/DomainMapper_Impl.cxx
index 44c9115a51e2..c21c9a282bf5 100644
--- a/writerfilter/source/dmapper/DomainMapper_Impl.cxx
+++ b/writerfilter/source/dmapper/DomainMapper_Impl.cxx
@@ -1600,7 +1600,10 @@ void DomainMapper_Impl::finishParagraph( const 
PropertyMapPtr& pPropertyMap, con
         {
             // ListLevel 9 means Body Level/no numbering.
             if (bNoNumbering || nListLevel == 9)
+            {
                 pParaContext->Insert(PROP_NUMBERING_STYLE_NAME, 
uno::makeAny(OUString()), true);
+                pParaContext->Erase(PROP_NUMBERING_LEVEL);
+            }
             else if ( !isNumberingViaRule )
             {
                 isNumberingViaStyle = true;

Reply via email to