diff --git a/packages/fcl-db/src/base/bufdataset.pas b/packages/fcl-db/src/base/bufdataset.pas index e7f8877597..61976f8203 100644 --- a/packages/fcl-db/src/base/bufdataset.pas +++ b/packages/fcl-db/src/base/bufdataset.pas @@ -2746,7 +2746,7 @@ begin CurrLinkItem := (FCurrentIndex as TDoubleLinkedBufIndex).FFirstRecBuf; FilterBuffer:=IntAllocRecordBuffer; move((FCurrentIndex as TDoubleLinkedBufIndex).FLastRecBuf^,FilterBuffer^,FRecordsize+sizeof(TBufRecLinkItem)*FMaxIndexesCount); - SetTempState(StoreDSState); + RestoreState(StoreDSState); // Iterate through the records until a match is found while (CurrLinkItem <> (FCurrentIndex as TDoubleLinkedBufIndex).FLastRecBuf) do