Make sure an action name of ":" gets ignored.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@27534 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2009-01-06 14:14:48 +00:00
parent 867f00bff9
commit 07a4efe71d
2 changed files with 9 additions and 4 deletions

View file

@ -1,3 +1,8 @@
2009-01-06 Fred Kiefer <FredKiefer@gmx.de>
* GormCore/GormClassManager.m (-nibData): Make sure an action name
of ":" gets ignored.
2008-12-26 13:53-EST Gregory John Casamento <greg_casamento@yahoo.com>
* Version: 1.2.8

View file

@ -1260,8 +1260,8 @@
NSString *actionName = nil;
NSScanner *scanner = [NSScanner scannerWithString: action];
[scanner scanUpToString: @":" intoString: &actionName];
[actionDict setObject: @"id" forKey: actionName];
if ([scanner scanUpToString: @":" intoString: &actionName])
[actionDict setObject: @"id" forKey: actionName];
}
[newInfo setObject: actionDict forKey: @"ACTIONS"];
@ -1310,8 +1310,8 @@
NSString *actionName = nil;
NSScanner *scanner = [NSScanner scannerWithString: action];
[scanner scanUpToString: @":" intoString: &actionName];
[actionDict setObject: @"id" forKey: actionName];
if ([scanner scanUpToString: @":" intoString: &actionName])
[actionDict setObject: @"id" forKey: actionName];
}
[newInfo setObject: actionDict forKey: @"ACTIONS"];