codetools: class completion: fixed add to published section

git-svn-id: trunk@22059 -
This commit is contained in:
mattias 2009-10-06 17:37:56 +00:00
parent 96b6819584
commit 9f47216bff

View File

@ -5184,7 +5184,9 @@ begin
ReadNextAtom;
if UpAtomIs('STRICT') then
ReadNextAtom;
InsertPos:=CurPos.EndPos;
ANode:=ClassSectionNode.Next;
if (ANode<>nil) and (CurPos.EndPos<=ANode.StartPos) then
InsertPos:=CurPos.EndPos;
end else if ClassSectionNode.Desc in AllClassInterfaces then begin
// skip class interface header
MoveCursorToCleanPos(InsertPos);