From 37a763ee4f443040ff843e88e91f27b6eecc0f39 Mon Sep 17 00:00:00 2001 From: juha Date: Sun, 17 Nov 2019 14:22:52 +0000 Subject: [PATCH] IDE: Fix compilation with defines IDE_MEM_CHECK and DebugDisableAutoSizing. git-svn-id: trunk@62257 - --- ide/showcompileropts.pas | 4 ++-- ide/sourcefilemanager.pas | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ide/showcompileropts.pas b/ide/showcompileropts.pas index 41a1ac5fd5..bfb4d46d77 100644 --- a/ide/showcompileropts.pas +++ b/ide/showcompileropts.pas @@ -556,13 +556,13 @@ begin OldPageIndex:=PageControl1.PageIndex; PgIndex:=2; ToolIndex:=0; - DisableAutoSizing; + DisableAutoSizing{$IFDEF DebugDisableAutoSizing}('TShowCompilerOptionsDlg.UpdateExecuteBeforeAfter'){$ENDIF}; try AddTool(CompilerOpts.ExecuteBefore,'Execute Before'); AddTool(CompilerOpts.ExecuteAfter,'Execute After'); PageControl1.PageIndex:=OldPageIndex; finally - EnableAutoSizing; + EnableAutoSizing{$IFDEF DebugDisableAutoSizing}('TShowCompilerOptionsDlg.UpdateExecuteBeforeAfter'){$ENDIF}; end; end; diff --git a/ide/sourcefilemanager.pas b/ide/sourcefilemanager.pas index dcda9a8c26..dc279ce500 100644 --- a/ide/sourcefilemanager.pas +++ b/ide/sourcefilemanager.pas @@ -40,6 +40,9 @@ uses LConvEncoding, LazFileCache, FileUtil, LazFileUtils, LazLoggerBase, LazUtilities, LazUTF8, LazTracer, AvgLvlTree, // Codetools + {$IFDEF IDE_MEM_CHECK} + MemCheck, + {$ENDIF} BasicCodeTools, CodeToolsStructs, CodeToolManager, FileProcs, DefineTemplates, CodeCache, CodeTree, FindDeclarationTool, KeywordFuncLists, // IdeIntf