summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Zhang <fezhang@suse.com>2013-03-28 21:00:11 +0800
committerAndras Timar <atimar@suse.com>2013-04-22 17:35:48 +0200
commit22c511b1fcf7a4178e23c136be3d30a7734d855d (patch)
treefea8c09844359fd919b753a6b7c57687d0ae4d68
parent60ca72ad68cb5a8e9b072e42e7d230419156316e (diff)
bnc#793414: Fixed the left margin of bullet
Change-Id: I4726ab00a6e2700407ffcf5258d3736ed0161514
-rw-r--r--oox/source/drawingml/textparagraphproperties.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/oox/source/drawingml/textparagraphproperties.cxx b/oox/source/drawingml/textparagraphproperties.cxx
index 87091c15621d..3a0d67e163d1 100644
--- a/oox/source/drawingml/textparagraphproperties.cxx
+++ b/oox/source/drawingml/textparagraphproperties.cxx
@@ -36,6 +36,7 @@
#include <com/sun/star/graphic/XGraphic.hpp>
#include <com/sun/star/beans/PropertyValue.hpp>
#include <com/sun/star/style/TabStop.hpp>
+#include <com/sun/star/text/PositionAndSpaceMode.hpp>
#include "oox/helper/helper.hxx"
#include "oox/helper/propertyset.hxx"
@@ -427,6 +428,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;
}
@@ -434,7 +436,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;
}