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:
Richard Frith-MacDonald 2006-09-13 06:20:28 +00:00
parent c06e564071
commit 5eef626c6b

View file

@ -479,7 +479,7 @@ static NSImage *arrowImage = nil; /* Cache arrow image. */
{
cellFrame = [self keyEquivalentRectForBounds: cellFrame];
if ([_menuItem hasSubmenu])
if ([_menuItem hasSubmenu] && arrowImage != nil)
{
NSSize size;
NSPoint position;