浏览代码

* Show a proper error-message when trying to do a locate on a uni-directional dataset

git-svn-id: trunk@19910 -
joost 14 年之前
父节点
当前提交
0fcb5ae687
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      packages/fcl-db/src/base/bufdataset.pas

+ 2 - 1
packages/fcl-db/src/base/bufdataset.pas

@@ -2980,7 +2980,8 @@ var CurrLinkItem    : PBufRecLinkItem;
     FiltAcceptable  : boolean;
     FiltAcceptable  : boolean;
 
 
 begin
 begin
-  Result := False;
+  // Call inherited to make sure the dataset is bi-directional
+  Result := inherited;
   CheckActive;
   CheckActive;
   if IsEmpty then exit;
   if IsEmpty then exit;