mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-02 01:01:00 +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
|
- (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];
|
||||||
}
|
}
|
||||||
|
@ -418,7 +418,7 @@ static NSImage *_pbc_image[2];
|
||||||
|
|
||||||
//[super setMenuItem: item];
|
//[super setMenuItem: item];
|
||||||
ASSIGN (_menuItem, item);
|
ASSIGN (_menuItem, item);
|
||||||
|
|
||||||
if ([_menuItem image] == nil)
|
if ([_menuItem image] == nil)
|
||||||
{
|
{
|
||||||
[_menuItem setImage: image];
|
[_menuItem setImage: image];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue