summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorFelix Zhang <fezhang@suse.com>2013-03-28 21:00:11 +0800
committerMuthu Subramanian <sumuthu@suse.com>2013-04-16 17:31:58 +0530
commit5c5f3782d8e324fb19c52df9781be1386d2b8407 (patch)
tree2988f5f75ea32c15d11dc7612bc29bd662a849fb /oox
parentf76d59c750b781c35eba554fad97a6ec971e6e84 (diff)
bnc#793414: Fixed the left margin of bullet
Change-Id: I4726ab00a6e2700407ffcf5258d3736ed0161514
Diffstat (limited to 'oox')
-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 edf13fbf9b9e..7889da2ee419 100644
--- a/oox/source/drawingml/textparagraphproperties.cxx
+++ b/oox/source/drawingml/textparagraphproperties.cxx
@@ -27,6 +27,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"
@@ -418,6 +419,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;
}
@@ -425,7 +427,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;
}