* Source/NSWindow.m (NSMiniWindowView -setImage:): Try to handle

an image value of nil. This is needed for Emacs.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@40168 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2016-10-23 20:36:14 +00:00
parent 2572daeff4
commit 2f2bda5aa4
2 changed files with 10 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2016-10-23 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSWindow.m (NSMiniWindowView -setImage:): Try to handle
an image value of nil. This is needed for Emacs.
2016-10-23 Fred Kiefer <FredKiefer@gmx.de>
* Source/GSLayoutManager.m (-advancementForGlyphAtIndex:):

View file

@ -576,8 +576,11 @@ static NSSize scaledIconSizeForSize(NSSize imageSize)
NSImage *imgCopy = [anImage copy];
[imgCopy setScalesWhenResized: YES];
[imgCopy setSize: scaledIconSizeForSize([imgCopy size])];
if (imgCopy != nil)
{
[imgCopy setSize: scaledIconSizeForSize([imgCopy size])];
}
if (imageCell == nil)
{
imageCell = [[NSCell alloc] initImageCell: imgCopy];