[Libreoffice-commits] .: Branch 'libreoffice-3-6' - oox/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Tue Aug 21 12:58:29 PDT 2012


 oox/source/drawingml/textparagraph.cxx |    6 ------
 1 file changed, 6 deletions(-)

New commits:
commit 1e49061273f1f64fe02e4ec916dc7b4b45207d21
Author: Felix Zhang <fezhang at suse.com>
Date:   Sat Jun 16 00:00:02 2012 +0800

    n760019: removing problematic code that disrupts numbering level
    
    Change-Id: Idb997e672e4f997ad324bdb5d49ab7dae4a9e9e9

diff --git a/oox/source/drawingml/textparagraph.cxx b/oox/source/drawingml/textparagraph.cxx
index 63a2845..1e2d8e2 100644
--- a/oox/source/drawingml/textparagraph.cxx
+++ b/oox/source/drawingml/textparagraph.cxx
@@ -129,12 +129,6 @@ void TextParagraph::insertAt(
             const OUString sNumberingLevel( CREATE_OUSTRING( "NumberingLevel" ) );
             xProps->setPropertyValue( sNumberingLevel, Any( static_cast< sal_Int16 >( -1 ) ) );
         }
-        else if ( nLevel > 1 )
-        {
-            // Even more UGLY HACK
-            const OUString sNumberingLevel( CREATE_OUSTRING( "NumberingLevel" ) );
-            xProps->setPropertyValue( sNumberingLevel, Any( static_cast< sal_Int16 >( nLevel-1 ) ) );
-        }
 
 // FIXME this is causing a lot of dispruption (ie does not work). I wonder what to do -- Hub
 //          Reference< XTextRange > xEnd( xAt, UNO_QUERY );


More information about the Libreoffice-commits mailing list