You've already forked lazarus-ccr
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:
@ -1517,14 +1517,14 @@ begin
|
|||||||
if nodename = 'u' then
|
if nodename = 'u' then
|
||||||
begin
|
begin
|
||||||
s := GetAttrValue(node, 'val');
|
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]
|
fntStyles := fntStyles+ [fssUnderline]
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
if nodename = 'strike' then
|
if nodename = 'strike' then
|
||||||
begin
|
begin
|
||||||
s := GetAttrValue(node, 'val');
|
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];
|
fntStyles := fntStyles + [fssStrikeout];
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user