From 27e580a5bb0be67a855003793dbc1281dd64d3e7 Mon Sep 17 00:00:00 2001 From: Muthu Subramanian K Date: Tue, 30 Nov 2010 18:31:53 +0530 Subject: [PATCH] Import of super/subscript properties of cells - n#655193 --- oox/source/xls/stylesbuffer.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/oox/source/xls/stylesbuffer.cxx b/oox/source/xls/stylesbuffer.cxx index 6c06b6a37dfe..91ed3f966f71 100644 --- a/oox/source/xls/stylesbuffer.cxx +++ b/oox/source/xls/stylesbuffer.cxx @@ -1161,10 +1161,11 @@ void Font::writeToPropertyMap( PropertyMap& rPropMap, FontPropertyType ePropType if( maUsedFlags.mbShadowUsed ) rPropMap[ PROP_CharShadowed ] <<= maApiData.mbShadow; // escapement - if( maUsedFlags.mbEscapementUsed && (ePropType == FONT_PROPTYPE_TEXT) ) + if( maUsedFlags.mbEscapementUsed ) { rPropMap[ PROP_CharEscapement ] <<= maApiData.mnEscapement; - rPropMap[ PROP_CharEscapementHeight ] <<= maApiData.mnEscapeHeight; + if( ePropType == FONT_PROPTYPE_TEXT ) + rPropMap[ PROP_CharEscapementHeight ] <<= maApiData.mnEscapeHeight; } }