You've already forked lazarus-ccr
fpspreadsheet: Avoid ods reader using localized color names.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4606 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -2844,9 +2844,14 @@ procedure TsSpreadOpenDocReader.ReadNumFormats(AStylesNode: TDOMNode);
|
|||||||
hasColor := true;
|
hasColor := true;
|
||||||
color := HTMLColorStrToColor(s);
|
color := HTMLColorStrToColor(s);
|
||||||
case color of
|
case color of
|
||||||
scBlack, scWhite, scRed, scGreen,
|
scBlack : nfs := '[black]' + nfs;
|
||||||
scBlue, scYellow, scMagenta, scCyan:
|
scWhite : nfs := '[white]' + nfs;
|
||||||
nfs := Format('[%s]%s', [GetColorName(color), nfs]);
|
scRed : nfs := '[red]' + nfs;
|
||||||
|
scGreen : nfs := '[green]' + nfs;
|
||||||
|
scBlue : nfs := '[blue]' + nfs;
|
||||||
|
scYellow : nfs := '[yellow]' + nfs;
|
||||||
|
scMagenta : nfs := '[magenta]' + nfs;
|
||||||
|
scCyan : nfs := '[cyan]' + nfs;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
Reference in New Issue
Block a user