Skip to content

Commit

Permalink
Fixed: Bug in StyleUn.pas #344
Browse files Browse the repository at this point in the history
  • Loading branch information
BerndGabriel committed Sep 22, 2024
1 parent 8a85b40 commit 2356421
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions source/StyleUn.pas
Original file line number Diff line number Diff line change
Expand Up @@ -3871,11 +3871,12 @@ function ColorAndOpacityFromString(S: ThtString; NeedPound: Boolean; out Color:
end;

I := Pos('hsl',S);
if I > 0 then begin
if I > 0 then
begin
Result := FindHSLColor(Copy(S, I + 3, 255));
if Result then
begin
LastS := S1;
LastS := S;
LastColor := Color;
end;
exit;
Expand Down

0 comments on commit 2356421

Please sign in to comment.