summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2017-03-06 20:11:24 +0200
committerTor Lillqvist <tml@collabora.com>2017-03-06 22:25:19 +0200
commit970f8dc7847967719652590f71f0f19e46ba7268 (patch)
tree3b2b3dfc00cd6dd6f177edc6b3e9fc5f43b4924f /sc
parentb225be8c997ffa85926217efff3654bec8c538a2 (diff)
Set the 'unused2' bit of 'Font' to 1 iff 'uls' is greater than 0 per spec
See https://msdn.microsoft.com/en-us/library/dd906117(v=office.12).aspx . Change-Id: I4ff278f4cdd388947bbe81b88b6c39ff2b208b1a
Diffstat (limited to 'sc')
-rw-r--r--sc/source/filter/excel/xestyle.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/sc/source/filter/excel/xestyle.cxx b/sc/source/filter/excel/xestyle.cxx
index 529b086afe2b..19e7463a74b4 100644
--- a/sc/source/filter/excel/xestyle.cxx
+++ b/sc/source/filter/excel/xestyle.cxx
@@ -993,6 +993,8 @@ void XclExpFont::WriteBody( XclExpStream& rStrm )
{
sal_uInt16 nAttr = EXC_FONTATTR_NONE;
::set_flag( nAttr, EXC_FONTATTR_ITALIC, maData.mbItalic );
+ if( maData.mnUnderline > 0 )
+ ::set_flag( nAttr, EXC_FONTATTR_UNDERLINE, true );
::set_flag( nAttr, EXC_FONTATTR_STRIKEOUT, maData.mbStrikeout );
::set_flag( nAttr, EXC_FONTATTR_OUTLINE, maData.mbOutline );
::set_flag( nAttr, EXC_FONTATTR_SHADOW, maData.mbShadow );