Fixed bug introduced in my last commit on the Ibeam cursor issue.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@37216 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Frank Le Grand 2013-10-10 18:12:15 +00:00
parent 44c6dfb650
commit c6fdf580ff
2 changed files with 3 additions and 3 deletions

View file

@ -669,8 +669,9 @@ backgroundColorHint:(NSColor *)bg
NSLog(@"An NSCursor object was encoded with the image "
@"file://localhost/Applications/Xcode.app/Contents/SharedFrameworks/DVTKit.framework/Resources/DVTIbeamCursor.tiff. "
@"This cursor was automatically substituted with [NSCursor IBeamCursor].");
self = [NSCursor IBeamCursor];
[image setName:nil];
self = RETAIN([NSCursor IBeamCursor]);
}
else
{

View file

@ -1725,7 +1725,6 @@ static NSSize GSResolutionOfImageRep(NSImageRep *rep)
// in the NSCursor's initWithCoder:
if ([[tmp absoluteString] isEqualToString:@"file://localhost/Applications/Xcode.app/Contents/SharedFrameworks/DVTKit.framework/Resources/DVTIbeamCursor.tiff"])
{
[nameDict removeObjectForKey:[tmp absoluteString]];
[self setName:[tmp absoluteString]];
}
else if ([[tmp absoluteString] rangeOfString:@"/Xcode.app/"].length > 0