Fix static linking

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11167 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
fedor 2001-10-17 03:53:55 +00:00
parent 1b2f8dae39
commit cfb13cc185
6 changed files with 40 additions and 4 deletions

View file

@ -129,20 +129,23 @@ static NSImage *arrowImageH = nil;
if ([_menuItem changesState])
{
// NSOnState
componentSize = [[_menuItem onStateImage] size];
if ([_menuItem onStateImage])
componentSize = [[_menuItem onStateImage] size];
_stateImageWidth = componentSize.width;
if (componentSize.height > neededMenuItemHeight)
neededMenuItemHeight = componentSize.height;
// NSOffState
componentSize = [[_menuItem offStateImage] size];
if ([_menuItem offStateImage])
componentSize = [[_menuItem offStateImage] size];
if (componentSize.width > _stateImageWidth)
_stateImageWidth = componentSize.width;
if (componentSize.height > neededMenuItemHeight)
neededMenuItemHeight = componentSize.height;
// NSMixedState
componentSize = [[_menuItem mixedStateImage] size];
if ([_menuItem mixedStateImage])
componentSize = [[_menuItem mixedStateImage] size];
if (componentSize.width > _stateImageWidth)
_stateImageWidth = componentSize.width;
if (componentSize.height > neededMenuItemHeight)