Corrected bug in previous change. In [itemAtIndex:] the index 0

was handled wrong.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17668 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
FredKiefer 2003-09-14 10:40:06 +00:00
parent 353c1c30b5
commit b8ea1f308a

View file

@ -346,7 +346,7 @@ static NSImage *_pbc_image[2];
- (id <NSMenuItem>) itemAtIndex: (int)index - (id <NSMenuItem>) itemAtIndex: (int)index
{ {
if ((index > 0) && (index < [_menu numberOfItems])) if ((index >= 0) && (index < [_menu numberOfItems]))
{ {
return [_menu itemAtIndex: index]; return [_menu itemAtIndex: index];
} }