mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-09 06:28:28 +02:00
TAChart: Fix potentially unbalanced sequence of Dataset.DisableControls and .EnableControls in TDbChartSource (https://forum.lazarus.freepascal.org/index.php/topic,70019.msg545153/topicseen.html)
(cherry picked from commit 8ef40e37d5
)
This commit is contained in:
parent
4d285f21a0
commit
e03aba2a0f
@ -146,8 +146,8 @@ procedure TDbChartSource.AfterDraw;
|
||||
begin
|
||||
inherited AfterDraw;
|
||||
try
|
||||
if not FDataLink.Active or (FBookmark = nil) then exit;
|
||||
FDataLink.Dataset.EnableControls;
|
||||
if not FDataLink.Active or (FBookmark = nil) then exit;
|
||||
FDataLink.DataSet.GotoBookmark(FBookmark);
|
||||
FDataLink.DataSet.FreeBookmark(FBookmark);
|
||||
finally
|
||||
|
Loading…
Reference in New Issue
Block a user