From: <ho...@us...> - 2006-11-08 21:35:13
|
Revision: 8338 http://svn.sourceforge.net/bibdesk/?rev=8338&view=rev Author: hofman Date: 2006-11-08 13:35:05 -0800 (Wed, 08 Nov 2006) Log Message: ----------- Remove groups in reverse order, or we mess up the indexes. Modified Paths: -------------- trunk/bibdesk/BibDocument_Groups.m Modified: trunk/bibdesk/BibDocument_Groups.m =================================================================== --- trunk/bibdesk/BibDocument_Groups.m 2006-11-08 21:18:45 UTC (rev 8337) +++ trunk/bibdesk/BibDocument_Groups.m 2006-11-08 21:35:05 UTC (rev 8338) @@ -1240,7 +1240,7 @@ - (IBAction)removeSelectedGroups:(id)sender { NSIndexSet *rowIndexes = [groupTableView selectedRowIndexes]; - unsigned int rowIndex = [rowIndexes firstIndex]; + unsigned int rowIndex = [rowIndexes lastIndex]; BDSKGroup *group; unsigned int count = 0; @@ -1259,7 +1259,7 @@ [self removeScriptGroup:(BDSKScriptGroup *)group]; count++; } - rowIndex = [rowIndexes indexGreaterThanIndex:rowIndex]; + rowIndex = [rowIndexes indexLessThanIndex:rowIndex]; } if (count == 0) { NSBeep(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |