Skip to content

Commit

Permalink
Ignore regional settings and enforce '.' as decimal separator for num…
Browse files Browse the repository at this point in the history
…eric parameters on the command-line
  • Loading branch information
Eric Grange committed Dec 23, 2021
1 parent 1a49528 commit ccf532a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cefHtmlSnapshot.dpr
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ end;
var
parameters : TSnapshotParameters;
begin
FormatSettings.DecimalSeparator := '.';

if (ParamCount > 0) and (Copy(ParamStr(1), 1, 6) = '--type') then begin
RunAsSubProcess;
Exit;
Expand Down

0 comments on commit ccf532a

Please sign in to comment.