mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 05:32:11 +00:00
* 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:
parent
2572daeff4
commit
2f2bda5aa4
2 changed files with 10 additions and 2 deletions
|
@ -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:):
|
||||
|
|
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue