[Libreoffice-commits] core.git: Branch 'distro/suse/suse-4.0' - oox/source

Muthu Subramanian sumuthu at collabora.com
Fri Mar 14 07:31:11 PDT 2014


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

New commits:
commit df861737beaa883ccd2b11bfa896cd546dd51b6f
Author: Muthu Subramanian <sumuthu at collabora.com>
Date:   Fri Mar 14 20:03:45 2014 +0530

    n#862510: Ignore baseline attributes with zero.
    
    Ported from 19abfaffe74b925e4428943d14187a7008797982
    
    Change-Id: I5447c16193f7c3e619ce10658c9696014d3d5a22

diff --git a/oox/source/drawingml/textcharacterpropertiescontext.cxx b/oox/source/drawingml/textcharacterpropertiescontext.cxx
index 2119dc6..13af2cd 100644
--- a/oox/source/drawingml/textcharacterpropertiescontext.cxx
+++ b/oox/source/drawingml/textcharacterpropertiescontext.cxx
@@ -56,7 +56,7 @@ TextCharacterPropertiesContext::TextCharacterPropertiesContext(
         mrTextCharacterProperties.moUnderline = aAttribs.getToken( XML_u );
     if ( aAttribs.hasAttribute( XML_strike ) )
         mrTextCharacterProperties.moStrikeout = aAttribs.getToken( XML_strike );
-    if ( aAttribs.hasAttribute( XML_baseline ) )
+    if ( aAttribs.hasAttribute( XML_baseline ) && aAttribs.getInteger( XML_baseline ).get() != 0 )
         mrTextCharacterProperties.moBaseline = aAttribs.getInteger( XML_baseline );
 
 //  mrTextCharacterProperties.moCaseMap     = aAttribs.getToken( XML_cap );


More information about the Libreoffice-commits mailing list