mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-03 16:50:42 +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
541a75bf97
commit
0b13cd154c
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>
|
2016-10-23 Fred Kiefer <FredKiefer@gmx.de>
|
||||||
|
|
||||||
* Source/GSLayoutManager.m (-advancementForGlyphAtIndex:):
|
* Source/GSLayoutManager.m (-advancementForGlyphAtIndex:):
|
||||||
|
|
|
@ -576,8 +576,11 @@ static NSSize scaledIconSizeForSize(NSSize imageSize)
|
||||||
NSImage *imgCopy = [anImage copy];
|
NSImage *imgCopy = [anImage copy];
|
||||||
|
|
||||||
[imgCopy setScalesWhenResized: YES];
|
[imgCopy setScalesWhenResized: YES];
|
||||||
[imgCopy setSize: scaledIconSizeForSize([imgCopy size])];
|
if (imgCopy != nil)
|
||||||
|
{
|
||||||
|
[imgCopy setSize: scaledIconSizeForSize([imgCopy size])];
|
||||||
|
}
|
||||||
|
|
||||||
if (imageCell == nil)
|
if (imageCell == nil)
|
||||||
{
|
{
|
||||||
imageCell = [[NSCell alloc] initImageCell: imgCopy];
|
imageCell = [[NSCell alloc] initImageCell: imgCopy];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue