mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 15:11:37 +00:00
Little update in auto-sizing for @"" contents
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@6282 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
8fc09a3db5
commit
07ba81b6f7
1 changed files with 2 additions and 2 deletions
|
@ -203,11 +203,11 @@ static NSColor *shadowCol;
|
|||
NSSize titleSize = [_titleCell cellSize];
|
||||
NSSize textSize;
|
||||
|
||||
if (_contents)
|
||||
if ((_contents != nil) && ([_contents isEqualToString: @""] == NO))
|
||||
textSize = [super cellSize];
|
||||
else
|
||||
{
|
||||
ASSIGN (_contents, @"minimum");
|
||||
ASSIGN (_contents, @"Minimum");
|
||||
textSize = [super cellSize];
|
||||
RELEASE (_contents);
|
||||
_contents = nil;
|
||||
|
|
Loading…
Reference in a new issue