|
@@ -93,7 +93,10 @@ end;
|
|
|
|
|
|
procedure TBufDataset.InternalFirst;
|
|
procedure TBufDataset.InternalFirst;
|
|
begin
|
|
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;
|
|
end;
|
|
|
|
|
|
procedure TBufDataset.InternalLast;
|
|
procedure TBufDataset.InternalLast;
|