* Allow TFloatField.Precision=-1, which is the default, bug #13297

git-svn-id: trunk@13007 -
This commit is contained in:
joost 2009-04-11 10:33:17 +00:00
parent e0c018c8f1
commit 5a488a9e5f

View File

@ -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;