[Libreoffice-commits] .: oox/source

Muthu Subramanian sumuthu at kemper.freedesktop.org
Tue Nov 15 07:18:09 PST 2011


 oox/source/drawingml/textbodypropertiescontext.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit a8b0407fef14cd89e3eb571c88ce3cb9edf70149
Author: Muthu Subramanian <sumuthu at suse.com>
Date:   Tue Nov 15 21:13:18 2011 +0530

    n#592912 and n#621744: Text Alignment fixes.

diff --git a/oox/source/drawingml/textbodypropertiescontext.cxx b/oox/source/drawingml/textbodypropertiescontext.cxx
index 083cccf..3c77a35 100644
--- a/oox/source/drawingml/textbodypropertiescontext.cxx
+++ b/oox/source/drawingml/textbodypropertiescontext.cxx
@@ -152,7 +152,7 @@ TextBodyPropertiesContext::TextBodyPropertiesContext( ContextHandler& rParent,
             mrTextBodyProp.maPropertyMap[ PROP_TextHorizontalAdjust ] <<=
                 TextHorizontalAdjust_RIGHT;
         }
-        else
+        else if( mrTextBodyProp.moVert.get( XML_horz ) == XML_horz )
             mrTextBodyProp.maPropertyMap[ PROP_TextVerticalAdjust ] <<= eVA;
     }
 }


More information about the Libreoffice-commits mailing list