Add offset When Pasting

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@17422 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fabien Vallon 2003-08-03 09:01:11 +00:00
parent 2ecd14b4a8
commit e4bf463c97

View file

@ -2339,6 +2339,21 @@ static NSImage *classesImage = nil;
screenPoint.y -= 10; screenPoint.y -= 10;
} }
} }
else
{
NSEnumerator *enumerator = [objects objectEnumerator];
id obj;
NSRect frame;
while ((obj = [enumerator nextObject]) != nil)
{
frame = [obj frame];
frame.origin.x -= 6;
frame.origin.y -= 6;
[obj setFrame: frame];
}
}
[self attachObjects: objects toParent: parent]; [self attachObjects: objects toParent: parent];
[self touch]; [self touch];
return objects; return objects;