Browse Source

* Patch from José Mejuto so that TBufDataset.SetRecNo takes the active index into account, bug #15460

git-svn-id: trunk@16257 -
joost 14 years ago
parent
commit
ef8837cfa8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/fcl-db/src/base/bufdataset.pas

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

@@ -2257,7 +2257,7 @@ begin
     end;
   TmpRecBuffer := (FCurrentIndex as TDoubleLinkedBufIndex).FFirstRecBuf;
   for recnr := 1 to value-1 do
-    TmpRecBuffer := TmpRecBuffer^.next;
+    TmpRecBuffer := TmpRecBuffer[FCurrentIndex.IndNr].next;
   GotoBookmark(@TmpRecBuffer);
 end;