mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-11 21:29:42 +02:00
* Patch from Ondrej Pokorny to fix HtmlToFPColor (bug ID 34388)
git-svn-id: trunk@39973 -
This commit is contained in:
parent
bcf03a52d8
commit
5cc137f54d
@ -721,7 +721,10 @@ function TryHtmlToFPColor(const S: String; out FPColor: TFPColor): Boolean;
|
|||||||
begin
|
begin
|
||||||
Val('$'+Hex, W, Code);
|
Val('$'+Hex, W, Code);
|
||||||
Result := (Code = 0);
|
Result := (Code = 0);
|
||||||
if not Result then W := 0;
|
if Result then
|
||||||
|
W := W or (W shl 8)
|
||||||
|
else
|
||||||
|
W := 0;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
var
|
var
|
||||||
|
Loading…
Reference in New Issue
Block a user