Correction for image resizing issue.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@20480 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2004-12-23 18:30:25 +00:00
parent 4273cafae2
commit 007c457cf4
2 changed files with 9 additions and 2 deletions

View file

@ -1,3 +1,9 @@
2004-12-23 13:30 Gregory John Casamento <greg_casamento@yahoo.com>
* GormViewEditor.m: In -performDragOperation: copy the image/sound
before setting it into the control to make certain any changes
made to the original image don't reflect in the system wide image.
2004-12-23 06:20 Gregory John Casamento <greg_casamento@yahoo.com>
* Resources/GormClassPanel.gorm: Set nextKeyView for all views

View file

@ -1334,7 +1334,7 @@ static BOOL currently_displaying = NO;
NSString *name = [dragPb stringForType: GormImagePboardType];
NSImage *image = [NSImage imageNamed: name];
[image setArchiveByName: NO];
[(id)_editedObject setImage: image];
[(id)_editedObject setImage: AUTORELEASE([image copy])];
return YES;
}
else if ([types containsObject: GormSoundPboardType] == YES)
@ -1343,7 +1343,8 @@ static BOOL currently_displaying = NO;
name = [dragPb stringForType: GormSoundPboardType];
if([(id)_editedObject respondsToSelector: @selector(setSound:)])
{
[(id)_editedObject setSound: [NSSound soundNamed: name]];
NSSound *sound = [NSSound soundNamed: name];
[(id)_editedObject setSound: AUTORELEASE([sound copy])];
}
return YES;
}