[Libreoffice-commits] .: oox/source

Muthu Subramanian sumuthu at kemper.freedesktop.org
Fri Feb 3 02:33:16 PST 2012


 oox/source/drawingml/textparagraphpropertiescontext.cxx |    7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

New commits:
commit a71c878cd0b443a0d8473d8e4eb43d66f37ce2c0
Author: Muthu Subramanian <sumuthu at suse.com>
Date:   Fri Feb 3 16:20:34 2012 +0530

    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."

diff --git a/oox/source/drawingml/textparagraphpropertiescontext.cxx b/oox/source/drawingml/textparagraphpropertiescontext.cxx
index 9d06ae1..d3c91cd 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


More information about the Libreoffice-commits mailing list