From 6ce70fb207f5dbc0a11c7ca9cc8f0d68e2b3d0dd Mon Sep 17 00:00:00 2001 From: mattias Date: Thu, 27 Jan 2011 19:45:52 +0000 Subject: [PATCH] IDE: do not complete method declarations if there is code behind, bug #17668 git-svn-id: trunk@29223 - --- ide/sourceeditprocs.pas | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ide/sourceeditprocs.pas b/ide/sourceeditprocs.pas index 393c82f8d1..9bafc004f8 100644 --- a/ide/sourceeditprocs.pas +++ b/ide/sourceeditprocs.pas @@ -600,8 +600,8 @@ begin icvCompleteProcDeclaration: // create complete procedure declaration if (AddChar='') - and (not (IdentList.StartAtomBehind.Flag - in [cafEdgedBracketOpen,cafRoundBracketOpen])) + and (IdentList.StartAtomBehind.Flag in [cafEnd,cafWord,cafSemicolon]) + and (ilcfEndOfLine in IdentList.ContextFlags) and (IdentItem.Node<>nil) then begin ProcHeadFlags:=[phpWithStart,phpWithVarModifiers,phpWithParameterNames, phpWithDefaultValues,phpWithResultType,phpWithCallingSpecs,