IDE, Editor Macro Pascal: fix switching between macros, broken in c77c71b54e

This commit is contained in:
Martin 2024-10-26 14:39:37 +02:00
parent f72113b9f4
commit 81f3140a4b

View File

@ -307,7 +307,13 @@ begin
Exec.LoadDebugData(FCachedCompiledDbg);
end
else begin
Exec.Cleanup;
if FPrivateExec = nil then begin
if not Exec.LoadData(FCachedCompiled) then // Load the data from the Data string.
exit;
Exec.LoadDebugData(FCachedCompiledDbg);
end
else
Exec.Cleanup;
end;
Exec.SynEdit := aEditor as TCustomSynEdit;