mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-02-24 03:51:22 +00:00
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:
parent
4273cafae2
commit
007c457cf4
2 changed files with 9 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue