Ver código fonte

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

git-svn-id: trunk@13007 -
joost 16 anos atrás
pai
commit
5a488a9e5f
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      packages/fcl-db/src/base/fields.inc

+ 1 - 1
packages/fcl-db/src/base/fields.inc

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