mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-26 03:01:07 +08:00
Accept negative sign before floats in FloatStr(), fixes bug #826
This commit is contained in:
@ -1392,7 +1392,7 @@ var
|
||||
begin
|
||||
Result := '';
|
||||
for i:=1 to Length(Val) do begin
|
||||
if Val[i] in ['0'..'9'] then
|
||||
if (Val[i] in ['0'..'9']) or ((i=1) and (Val[i]='-')) then
|
||||
Result := Result + Val[i]
|
||||
else if Val[i] = DecimalSeparator then
|
||||
Result := Result + '.';
|
||||
|
Reference in New Issue
Block a user