IDE: Fix compilation with defines IDE_MEM_CHECK and DebugDisableAutoSizing.

git-svn-id: trunk@62257 -
This commit is contained in:
juha 2019-11-17 14:22:52 +00:00
parent 4e9cd68c9f
commit 37a763ee4f
2 changed files with 5 additions and 2 deletions

View File

@ -556,13 +556,13 @@ begin
OldPageIndex:=PageControl1.PageIndex; OldPageIndex:=PageControl1.PageIndex;
PgIndex:=2; PgIndex:=2;
ToolIndex:=0; ToolIndex:=0;
DisableAutoSizing; DisableAutoSizing{$IFDEF DebugDisableAutoSizing}('TShowCompilerOptionsDlg.UpdateExecuteBeforeAfter'){$ENDIF};
try try
AddTool(CompilerOpts.ExecuteBefore,'Execute Before'); AddTool(CompilerOpts.ExecuteBefore,'Execute Before');
AddTool(CompilerOpts.ExecuteAfter,'Execute After'); AddTool(CompilerOpts.ExecuteAfter,'Execute After');
PageControl1.PageIndex:=OldPageIndex; PageControl1.PageIndex:=OldPageIndex;
finally finally
EnableAutoSizing; EnableAutoSizing{$IFDEF DebugDisableAutoSizing}('TShowCompilerOptionsDlg.UpdateExecuteBeforeAfter'){$ENDIF};
end; end;
end; end;

View File

@ -40,6 +40,9 @@ uses
LConvEncoding, LazFileCache, FileUtil, LazFileUtils, LazLoggerBase, LazUtilities, LConvEncoding, LazFileCache, FileUtil, LazFileUtils, LazLoggerBase, LazUtilities,
LazUTF8, LazTracer, AvgLvlTree, LazUTF8, LazTracer, AvgLvlTree,
// Codetools // Codetools
{$IFDEF IDE_MEM_CHECK}
MemCheck,
{$ENDIF}
BasicCodeTools, CodeToolsStructs, CodeToolManager, FileProcs, DefineTemplates, BasicCodeTools, CodeToolsStructs, CodeToolManager, FileProcs, DefineTemplates,
CodeCache, CodeTree, FindDeclarationTool, KeywordFuncLists, CodeCache, CodeTree, FindDeclarationTool, KeywordFuncLists,
// IdeIntf // IdeIntf