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:
rfm 2006-09-13 06:20:28 +00:00
parent 86ef2ec6d8
commit dccf635fb6

View file

@ -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;