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; } }