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:
Nicola Pero 2000-03-15 02:41:39 +00:00
parent 8fc09a3db5
commit 07ba81b6f7

View file

@ -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;