* Fixed AV while filtering datasets with null-fields

git-svn-id: trunk@20389 -
This commit is contained in:
joost 2012-02-21 16:32:51 +00:00
parent c29ce4c891
commit 942c2d035e

View File

@ -181,13 +181,11 @@ end;
procedure TStringFieldVar.Refresh(Buffer: TRecordBuffer);
var Fieldbuf : TStringFieldBuffer;
s : string;
begin
if not FField.DataSet.GetFieldData(FField,@Fieldbuf) then
s := ''
FFieldVal^:=#0
else
s := Fieldbuf;
strcopy(FFieldVal,@s[1]);
strcopy(FFieldVal,@Fieldbuf[0]);
end;
//--TFloatFieldVar-----------------------------------------------------------