You've already forked lazarus-ccr
fpspreadsheet: Fix ooxml reader choking on files written by Adobe Acrobat X which writes HTML colors with # prefix. https://forum.lazarus.freepascal.org/index.php/topic,47749.msg342501.html.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7207 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -1118,6 +1118,9 @@ begin
|
||||
|
||||
s := GetAttrValue(ANode, 'rgb');
|
||||
if s <> '' then begin
|
||||
if s[1] = '#' then
|
||||
Result := HTMLColorStrToColor(s)
|
||||
else
|
||||
Result := HTMLColorStrToColor('#' + s);
|
||||
exit;
|
||||
end;
|
||||
|
Reference in New Issue
Block a user