mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-04-22 14:10:44 +00:00
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:
parent
a61ec02510
commit
3a84a68109
1 changed files with 7 additions and 1 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue