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
This commit is contained in:
Gregory John Casamento 2006-08-29 13:12:46 +00:00
parent 57d3cefd13
commit 39b213700b

View file

@ -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];