Small correction when cutting/pasting. Attach the view to the proper parent.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@21079 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2005-04-10 16:32:10 +00:00
parent a61ec02510
commit 3a84a68109

View file

@ -1186,11 +1186,17 @@ int _sortViews(id view1, id view2, void *context)
{
NSEnumerator *en = nil;
NSView *sub = nil;
NSView *par = [view superview];
if([sub isKindOfClass: [GormViewEditor class]])
return;
[document attachObject: view toParent: nil];
if([par isKindOfClass: [GormViewEditor class]])
{
par = [(GormViewEditor *)par editedObject];
}
[document attachObject: view toParent: par];
en = [[view subviews] objectEnumerator];
while((sub = [en nextObject]) != nil)
{