mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 15:10:38 +00:00
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:
parent
873c7f19d0
commit
3d9091f2d4
3 changed files with 24 additions and 1 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue