mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-02-24 12:01:16 +00:00
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:
parent
2ecd14b4a8
commit
e4bf463c97
1 changed files with 15 additions and 0 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue