* fix when dataset is empty, must not read entire stream

git-svn-id: trunk@5602 -
This commit is contained in:
oro06 2006-12-15 08:26:18 +00:00
parent 76a3e61135
commit f64ec89e72

View File

@ -476,7 +476,7 @@ begin
CheckMarker(F,smData);
Size:=ReadInteger(F);
FStream.Clear;
FStream.CopyFrom(F,Size);
if Size>0 then FStream.CopyFrom(F,Size);
FRecCount:=Size div FRecSize;
FCurrRecNo:=-1;
end;