From 39b213700be6864d221c9f9c39ee2ab32271971a Mon Sep 17 00:00:00 2001 From: Gregory John Casamento Date: Tue, 29 Aug 2006 13:12:46 +0000 Subject: [PATCH] Correction for bug found by fabien. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@23372 72102866-910b-0410-8b05-ffd578937521 --- GormCore/GormInternalViewEditor.m | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/GormCore/GormInternalViewEditor.m b/GormCore/GormInternalViewEditor.m index 30f7629f..f3152e49 100644 --- a/GormCore/GormInternalViewEditor.m +++ b/GormCore/GormInternalViewEditor.m @@ -309,11 +309,12 @@ static NSImage *horizontalImage; - (void) deleteSelection { int i; - int count = [selection count]; + NSArray *sel = [selection copy]; + int count = [sel count]; for (i = count - 1; i >= 0; i--) { - id ed = [selection objectAtIndex: i]; + id ed = [sel objectAtIndex: i]; id temp = [ed editedObject]; [ed detachSubviews];