[Libreoffice-commits] core.git: Branch 'libreoffice-4-3' - oox/source

Tomaž Vajngerl tomaz.vajngerl at collabora.com
Fri Aug 29 01:25:11 PDT 2014


 oox/source/export/drawingml.cxx |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

New commits:
commit eed9b96cd65816f2f03b3ad00994d26d6a3cf783
Author: Tomaž Vajngerl <tomaz.vajngerl at collabora.com>
Date:   Thu Aug 28 13:32:38 2014 +0200

    bnc#822347: if number type is not set, skip numbering
    
    If numbering is detected then (level is > 0) and the number type
    is not set, the defult bullet symbol is written. This is not
    correct as the default should be SVX_NUM_NUMBER_NONE which should
    skip numbering or set it to none. With this change the numbering
    is skipped (as in MSO).
    
    (cherry picked from commit 14fa2698f2f651343675761e75be01b84c4c5ff1)
    
    Conflicts:
    	oox/source/export/drawingml.cxx
    
    Change-Id: I8d08a6325509c7bd6f96f64c8d29e5f3045458ca
    Reviewed-on: https://gerrit.libreoffice.org/11181
    Reviewed-by: Miklos Vajna <vmiklos at collabora.co.uk>
    Tested-by: Miklos Vajna <vmiklos at collabora.co.uk>

diff --git a/oox/source/export/drawingml.cxx b/oox/source/export/drawingml.cxx
index fe55aa8..2ef0d1f 100644
--- a/oox/source/export/drawingml.cxx
+++ b/oox/source/export/drawingml.cxx
@@ -1458,7 +1458,7 @@ void DrawingML::WriteParagraphNumbering( Reference< XPropertySet > rXPropSet, sa
 
             if ( nPropertyCount ) {
 
-                sal_Int16 nNumberingType = -1;
+                sal_Int16 nNumberingType = SVX_NUM_NUMBER_NONE;
                 bool bSDot = false;
                 bool bPBehind = false;
                 bool bPBoth = false;
@@ -1520,6 +1520,9 @@ void DrawingML::WriteParagraphNumbering( Reference< XPropertySet > rXPropSet, sa
                     }
                 }
 
+                if (nNumberingType == SVX_NUM_NUMBER_NONE)
+                    return;
+
                 const char* pAutoNumType = GetAutoNumType( nNumberingType, bSDot, bPBehind, bPBoth );
 
                 if( nLevel >= 0 ) {


More information about the Libreoffice-commits mailing list