summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMuthu Subramanian <sumuthu@suse.com>2012-02-03 16:20:34 +0530
committerMuthu Subramanian <sumuthu@suse.com>2012-02-03 16:20:34 +0530
commita71c878cd0b443a0d8473d8e4eb43d66f37ce2c0 (patch)
treec8bc8cda61490a27d024e030fc9d1db2b096fdda
parent1085f3ee2f67e955a05efdc7a4a8feb8f6d718d9 (diff)
n#744509: Alignment of text is wrong.
According to section 21.1.2.2.7 [pPr], "If this [algn] attribute is omitted, then a value of left is implied."
-rw-r--r--oox/source/drawingml/textparagraphpropertiescontext.cxx7
1 files changed, 1 insertions, 6 deletions
diff --git a/oox/source/drawingml/textparagraphpropertiescontext.cxx b/oox/source/drawingml/textparagraphpropertiescontext.cxx
index 9d06ae161071..d3c91cda3c5e 100644
--- a/oox/source/drawingml/textparagraphpropertiescontext.cxx
+++ b/oox/source/drawingml/textparagraphpropertiescontext.cxx
@@ -64,12 +64,7 @@ TextParagraphPropertiesContext::TextParagraphPropertiesContext( ContextHandler&
PropertyMap& rPropertyMap( mrTextParagraphProperties.getTextParagraphPropertyMap() );
// ST_TextAlignType
- if ( xAttribs->hasAttribute( XML_algn ) )
- {
- sal_Int32 nAlign = xAttribs->getOptionalValueToken( XML_algn, XML_l );
- rPropertyMap[ PROP_ParaAdjust ] <<= GetParaAdjust( nAlign );
- }
-// OSL_TRACE( "OOX: para adjust %d", GetParaAdjust( nAlign ));
+ rPropertyMap[ PROP_ParaAdjust ] <<= GetParaAdjust( xAttribs->getOptionalValueToken( XML_algn, XML_l ) );
// TODO see to do the same with RubyAdjust
// ST_Coordinate32