Browse Source

* GotoBookmark checks that bookmark is valid.

michael 6 years ago
parent
commit
5012b557ae
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/fcl-db/db.pas

+ 1 - 1
packages/fcl-db/db.pas

@@ -4372,7 +4372,7 @@ procedure TDataSet.GotoBookmark(const ABookmark: TBookmark);
 
 
 
 
 begin
 begin
-  If Assigned(ABookMark) then
+  If Not IsNull(ABookMark.Data) then
     begin
     begin
     CheckBrowseMode;
     CheckBrowseMode;
     DoBeforeScroll;
     DoBeforeScroll;