Examples, SynEdit, Completion: fix crash on empty list (patch by Zoron)

git-svn-id: trunk@28176 -
This commit is contained in:
martin 2010-11-10 11:12:39 +00:00
parent 2252ae27a0
commit 230fc8baf9

View File

@ -92,7 +92,10 @@ begin
Add('Police Constable');
Add('Police');
Add('Constable');
APosition := 0;
if SynCompletion.ItemList.Count > 0 then
APosition := 0
else
APosition := -1;
end;
procedure TForm1.FormCreate(Sender: TObject);