mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-04-22 14:10:44 +00:00
set a good path when adding Images
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@17431 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
e81b44f8c4
commit
cc8fffd7bf
1 changed files with 3 additions and 5 deletions
|
@ -134,7 +134,7 @@ static int handled_mask= NSDragOperationCopy|NSDragOperationGeneric|NSDragOperat
|
|||
printf("count %i\n",c);
|
||||
for (i=0;i<c;i++)
|
||||
{
|
||||
|
||||
NSLog(@"====> %@",[data objectAtIndex:i]);
|
||||
id placeHolder =
|
||||
[(GormDocument *)document _createImagePlaceHolder: [data objectAtIndex: i]];
|
||||
NSLog(@"here1 %@", [data objectAtIndex: i]);
|
||||
|
@ -143,10 +143,8 @@ static int handled_mask= NSDragOperationCopy|NSDragOperationGeneric|NSDragOperat
|
|||
{
|
||||
NSLog(@"here %@", [data objectAtIndex: i]);
|
||||
[self addObject: placeHolder];
|
||||
[(GormDocument *)document addImage:
|
||||
[[[data objectAtIndex: i]
|
||||
lastPathComponent]
|
||||
stringByDeletingPathExtension]];
|
||||
[(GormDocument *)document addImage: [data objectAtIndex: i]];
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue