From 24aeeb016323821b7eba6ab78a4dcf5e7ebb157a Mon Sep 17 00:00:00 2001 From: Felix Zhang Date: Thu, 28 Mar 2013 21:00:11 +0800 Subject: [PATCH] bnc#793414: Fixed the left margin of bullet Change-Id: I4726ab00a6e2700407ffcf5258d3736ed0161514 --- oox/source/drawingml/textparagraphproperties.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/oox/source/drawingml/textparagraphproperties.cxx b/oox/source/drawingml/textparagraphproperties.cxx index b39ffb6d0b4f..4598c62fa59e 100644 --- a/oox/source/drawingml/textparagraphproperties.cxx +++ b/oox/source/drawingml/textparagraphproperties.cxx @@ -27,6 +27,7 @@ #include #include #include +#include #include "oox/helper/helper.hxx" #include "oox/helper/propertyset.hxx" @@ -416,6 +417,7 @@ void TextParagraphProperties::pushToPropSet( const ::oox::core::XmlFilterBase* p { if ( noParaLeftMargin ) { + aPropSet.setProperty( PROP_ParaLeftMargin, static_cast< sal_Int32 >(0)); rioBulletMap[ PROP_LeftMargin ] <<= static_cast< sal_Int32 >( *noParaLeftMargin ); noParaLeftMargin = boost::none; } @@ -423,7 +425,7 @@ void TextParagraphProperties::pushToPropSet( const ::oox::core::XmlFilterBase* p { // Force Paragraph property as zero - impress seems to use the value from previous // (non) bullet line if not set to zero explicitly :( - aPropSet.setProperty( PROP_ParaFirstLineIndent, static_cast< sal_Int32>(0) ); + aPropSet.setProperty( PROP_ParaFirstLineIndent, static_cast< sal_Int32 >(0) ); rioBulletMap[ PROP_FirstLineOffset ] <<= static_cast< sal_Int32 >( *noFirstLineIndentation ); noFirstLineIndentation = boost::none; }