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,6 +307,12 @@ begin
Exec.LoadDebugData(FCachedCompiledDbg);
end
else begin
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;