Переглянути джерело

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

git-svn-id: trunk@85 -
michael 20 роки тому
батько
коміт
9cf054b6dc
1 змінених файлів з 1 додано та 1 видалено
  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