Write warnings of respectively the proper nil object.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@37286 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Riccardo Mottola 2013-10-26 20:44:58 +00:00
parent 6ef0a5f06a
commit ef9a3eca84
2 changed files with 10 additions and 5 deletions

View file

@ -1,3 +1,8 @@
2013-10-26 Riccardo Mottola <rm@gnu.org>
* Plugins/Nib/GormNibWrapperBuilder.m
Write warnings of respectively the proper nil object.
2013-10-19 Sebastian Reitenbach <sebastia@l00-bugdead-prods.de>
* GormCore/GormClassEditor.m

View file

@ -2,7 +2,7 @@
*
* This class is a subclass of the NSDocumentController
*
* Copyright (C) 2006 Free Software Foundation, Inc.
* Copyright (C) 2006-2013 Free Software Foundation, Inc.
*
* Author: Gregory John Casamento <greg_casamento@yahoo.com>
* Date: 2006
@ -106,14 +106,14 @@
NSLog(@"==> WARNING: value for object %@ is %@ in objects map.",src,dst);
}
NSMapInsert(_names, src, name);
if(dst == nil)
if(name == nil)
{
NSLog(@"==> WARNING: value for object %@ is %@ in names map.",src,dst);
NSLog(@"==> WARNING: value for object %@ is %@ in names map.",src,name);
}
NSMapInsert(_oids, src, currOid);
if(dst == nil)
if(currOid == nil)
{
NSLog(@"==> WARNING: value for object %@ is %@ in oids map.",src,dst);
NSLog(@"==> WARNING: value for object %@ is %@ in oids map.",src,currOid);
}
}
else