Better NIB loading for NSWindow.

Ignore missing image in NSButtonCell drawing.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26591 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
fredkiefer 2008-06-02 10:35:42 +00:00
parent 873c7f19d0
commit 3d9091f2d4
3 changed files with 24 additions and 1 deletions

View file

@ -1102,11 +1102,23 @@ typedef struct _GSButtonCellFlags
{
imageSize = [imageToDisplay size];
}
else
{
// When there is no image to display, ignore it in the calculations
imageToDisplay = nil;
ipos = NSNoImage;
}
if (titleToDisplay && ipos != NSImageOnly)
{
titleSize = [titleToDisplay size];
}
else
{
// When there is no text to display, ignore it in the calculations
titleToDisplay = nil;
ipos = NSImageOnly;
}
if (flippedView == YES)
{