Browse Source

+ Fix for negative fieldindex in Tfields.SetFieldIndex (from Alexandriv alexandru)

git-svn-id: trunk@85 -
michael 20 years ago
parent
commit
9cf054b6dc
1 changed files with 1 additions and 1 deletions
  1. 1 1
      fcl/db/fields.inc

+ 1 - 1
fcl/db/fields.inc

@@ -2180,7 +2180,7 @@ begin
   If Old=-1 then
     Exit;
   // Check value
-  If Value<FFieldList.Count Then Value:=0;
+  If Value<0 Then Value:=0;
   If Value>=Count then Value:=Count-1;
   If Value<>Old then
     begin