mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 15:11:37 +00:00
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:
parent
aa04d96075
commit
a2a80d0941
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue