summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMuthu Subramanian <sumuthu@collabora.com>2014-03-14 20:03:45 +0530
committerMuthu Subramanian <sumuthu@collabora.com>2014-03-14 20:03:45 +0530
commitdf861737beaa883ccd2b11bfa896cd546dd51b6f (patch)
tree5fab433c761726bc960eca3026af93a08c563a6c
parent55722afd357bc6243fe5ad65234ff34c6c9799f1 (diff)
n#862510: Ignore baseline attributes with zero.
Ported from 19abfaffe74b925e4428943d14187a7008797982 Change-Id: I5447c16193f7c3e619ce10658c9696014d3d5a22
-rw-r--r--oox/source/drawingml/textcharacterpropertiescontext.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/oox/source/drawingml/textcharacterpropertiescontext.cxx b/oox/source/drawingml/textcharacterpropertiescontext.cxx
index 2119dc6a8661..13af2cd2bd38 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 );