mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 20:01:11 +00:00
* Source/NSImage.m (+imageNamed:): Don't try to look up path
if called with nil (just return nil). git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@34632 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
d81df878a5
commit
cbf7bc52a9
2 changed files with 7 additions and 2 deletions
|
@ -1,4 +1,9 @@
|
|||
2012-01-25 Eric Wasylishen <ericwa@ericwa-MacBook>
|
||||
2012-01-25 Eric Wasylishen <ewasylishen@gmail.com>
|
||||
|
||||
* Source/NSImage.m (+imageNamed:): Don't try to look up path
|
||||
if called with nil (just return nil).
|
||||
|
||||
2012-01-25 Eric Wasylishen <ewasylishen@gmail.com>
|
||||
|
||||
* Source/NSClipView.m: Disable copy-on-scroll until after release
|
||||
|
||||
|
|
|
@ -209,7 +209,7 @@ repd_for_rep(NSArray *_reps, NSImageRep *rep)
|
|||
*/
|
||||
[imageLock lock];
|
||||
image = (NSImage*)[nameDict objectForKey: aName];
|
||||
if (image == nil)
|
||||
if (image == nil && aName != nil)
|
||||
{
|
||||
NSString *path = [self _pathForImageNamed: aName];
|
||||
|
||||
|
|
Loading…
Reference in a new issue