Explorar el Código

+ fix for bug #7211

git-svn-id: trunk@4327 -
joost hace 19 años
padre
commit
d979196df0
Se han modificado 1 ficheros con 4 adiciones y 1 borrados
  1. 4 1
      fcl/db/bufdataset.inc

+ 4 - 1
fcl/db/bufdataset.inc

@@ -93,7 +93,10 @@ end;
 
 procedure TBufDataset.InternalFirst;
 begin
-  FCurrentRecBuf := nil;
+// if FCurrentRecBuf = FLastRecBuf then the dataset is just opened and empty
+// in which case InternalFirst should do nothing (bug 7211)
+  if FCurrentRecBuf <> FLastRecBuf then
+    FCurrentRecBuf := nil;
 end;
 
 procedure TBufDataset.InternalLast;