mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-21 12:49:33 +02:00
* Allow TFloatField.Precision=-1, which is the default, bug #13297
git-svn-id: trunk@13007 -
This commit is contained in:
parent
e0c018c8f1
commit
5a488a9e5f
@ -1696,7 +1696,7 @@ end;
|
||||
|
||||
procedure TFloatField.SetPrecision(const AValue: Longint);
|
||||
begin
|
||||
if AValue > 1 then
|
||||
if (AValue = -1) or (AValue > 1) then
|
||||
FPrecision := AValue
|
||||
else
|
||||
FPrecision := 2;
|
||||
|
Loading…
Reference in New Issue
Block a user