* Fix bug ID #33080

git-svn-id: trunk@38066 -
This commit is contained in:
michael 2018-01-28 10:38:55 +00:00
parent 5a9488b1fc
commit afa2b90a5d

View File

@ -1504,7 +1504,8 @@ procedure TDataSet.ClearFields;
begin
if not (State in dsEditModes) then DatabaseError(SNotEditing, Self);
if not (State in dsEditModes) then
DatabaseError(SNotEditing, Self);
DataEvent(deCheckBrowseMode, 0);
FreeFieldBuffers;
InternalInitRecord(ActiveBuffer);
@ -2134,8 +2135,6 @@ begin
{$endif}
// nothing found, invalidate buffer and bail out.
ClearBuffers;
// Make sure that the active record is 'empty', ie: that all fields are null
InternalInitRecord(ActiveBuffer);
DataEvent(deDatasetChange,0);
exit;
end;