From dccf635fb603b8c7ca76f102fca722bd1e7bf176 Mon Sep 17 00:00:00 2001 From: rfm Date: Wed, 13 Sep 2006 06:20:28 +0000 Subject: [PATCH] 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 --- Source/NSMenuItemCell.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/NSMenuItemCell.m b/Source/NSMenuItemCell.m index c21f4f955..da0dd5871 100644 --- a/Source/NSMenuItemCell.m +++ b/Source/NSMenuItemCell.m @@ -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;