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:
wp_xyz 2025-01-28 23:25:37 +01:00
parent 4d285f21a0
commit e03aba2a0f

View File

@ -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