fpspreadsheet: Fix detection of underlined and strike-through font in xlsx files not written by Excel.

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6595 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
wp_xxyyzz 2018-08-11 12:44:52 +00:00
parent 823b51e2b5
commit 3e79a95fc1

View File

@ -1517,14 +1517,14 @@ begin
if nodename = 'u' then
begin
s := GetAttrValue(node, 'val');
if (s = '') or StrIsTrue(s) then // if GetAttrValue(node, 'val') <> 'false' then
if not StrIsFalse(s) then // can have many values, not just booleans
fntStyles := fntStyles+ [fssUnderline]
end
else
if nodename = 'strike' then
begin
s := GetAttrValue(node, 'val');
if (s = '') or StrIsTrue(s) then // if GetAttrValue(node, 'val') <> 'false' then
if not StrIsFalse(s) then // can have several values, not just booleans
fntStyles := fntStyles + [fssStrikeout];
end
else