mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-16 04:09:15 +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);
|
procedure TFloatField.SetPrecision(const AValue: Longint);
|
||||||
begin
|
begin
|
||||||
if AValue > 1 then
|
if (AValue = -1) or (AValue > 1) then
|
||||||
FPrecision := AValue
|
FPrecision := AValue
|
||||||
else
|
else
|
||||||
FPrecision := 2;
|
FPrecision := 2;
|
||||||
|
Loading…
Reference in New Issue
Block a user