Minor optimization.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5221 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Nicola Pero 1999-11-17 00:03:28 +00:00
parent aa04d96075
commit a2a80d0941

View file

@ -91,7 +91,9 @@ static NSColor *shadowCol;
- (BOOL)isOpaque
{
return [super isOpaque] && [_titleCell isOpaque];
// [_titleCell isOpaque] always returns NO, so put it first
// to spare the other message.
return [_titleCell isOpaque] && [super isOpaque];
}
- (void)setTitle: (NSString*)aString