mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-02 17:51:06 +00:00
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:
parent
353c1c30b5
commit
b8ea1f308a
1 changed files with 2 additions and 2 deletions
|
@ -346,7 +346,7 @@ static NSImage *_pbc_image[2];
|
|||
|
||||
- (id <NSMenuItem>) itemAtIndex: (int)index
|
||||
{
|
||||
if ((index > 0) && (index < [_menu numberOfItems]))
|
||||
if ((index >= 0) && (index < [_menu numberOfItems]))
|
||||
{
|
||||
return [_menu itemAtIndex: index];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue