mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 20:50:48 +00:00
Don't try to draw arrow if image does not exist
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23486 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
86ef2ec6d8
commit
dccf635fb6
1 changed files with 1 additions and 1 deletions
|
@ -479,7 +479,7 @@ static NSImage *arrowImage = nil; /* Cache arrow image. */
|
||||||
{
|
{
|
||||||
cellFrame = [self keyEquivalentRectForBounds: cellFrame];
|
cellFrame = [self keyEquivalentRectForBounds: cellFrame];
|
||||||
|
|
||||||
if ([_menuItem hasSubmenu])
|
if ([_menuItem hasSubmenu] && arrowImage != nil)
|
||||||
{
|
{
|
||||||
NSSize size;
|
NSSize size;
|
||||||
NSPoint position;
|
NSPoint position;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue