mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-12 21:49:09 +02:00
+ do not call BeforeScroll while in ApplyUpdates
git-svn-id: trunk@2036 -
This commit is contained in:
parent
710ea0edf0
commit
3bf8536c97
@ -605,7 +605,10 @@ begin
|
|||||||
if FUpdateBuffer[r].UpdateKind = ukDelete then
|
if FUpdateBuffer[r].UpdateKind = ukDelete then
|
||||||
InternalGotoBookmark(@(FUpdateBuffer[r].RecordNo))
|
InternalGotoBookmark(@(FUpdateBuffer[r].RecordNo))
|
||||||
else
|
else
|
||||||
SetRecNo(FUpdateBuffer[r].RecordNo);
|
begin
|
||||||
|
InternalGotoBookMark(@FUpdateBuffer[r].RecordNo);
|
||||||
|
Resync([rmExact,rmCenter]);
|
||||||
|
end;
|
||||||
if ApplyRecUpdate(FUpdateBuffer[r].UpdateKind) then
|
if ApplyRecUpdate(FUpdateBuffer[r].UpdateKind) then
|
||||||
begin
|
begin
|
||||||
buffer := FBBuffers[FUpdateBuffer[r].RecordNo];
|
buffer := FBBuffers[FUpdateBuffer[r].RecordNo];
|
||||||
@ -638,7 +641,11 @@ begin
|
|||||||
end;
|
end;
|
||||||
Refresh;
|
Refresh;
|
||||||
if not GetDeleted(pbyte(FBBuffers[savebookmark])) then
|
if not GetDeleted(pbyte(FBBuffers[savebookmark])) then
|
||||||
SetRecNo(SaveBookMark);
|
begin
|
||||||
|
InternalGotoBookMark(@SaveBookMark);
|
||||||
|
Resync([rmExact,rmCenter]);
|
||||||
|
end;
|
||||||
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TBufDataset.InternalPost;
|
procedure TBufDataset.InternalPost;
|
||||||
|
Loading…
Reference in New Issue
Block a user