summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMuthu Subramanian <sumuthu@collabora.com>2014-03-14 20:03:45 +0530
committerAndras Timar <andras.timar@collabora.com>2014-04-03 05:30:55 -0700
commit8f0e912cd1b93aff6eb940729971af94fa35e742 (patch)
treef2eaf1e1d61e362519594261d267e393c2727779
parentc18dfafe5d28bed43398bd6468f5c3ffdc8ba9e8 (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 );