2013-02-18 Frank Le Grand <frank.legrand@testplant.com>

* Source\NSCollectionView.m: Fixed a potential "index out
	of bounds" exception.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@37696 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Frank Le Grand 2014-02-19 03:40:26 +00:00
parent a9cac5d99a
commit f203fea7d7
2 changed files with 11 additions and 3 deletions

View file

@ -1,3 +1,8 @@
2013-02-18 Frank Le Grand <frank.legrand@testplant.com>
* Source\NSCollectionView.m: Fixed a potential "index out
of bounds" exception.
2013-10-21 Frank Le Grand <frank.legrand@testplant.com>
* Source\NSCursor.m: Added class method "resetStack"

View file

@ -158,10 +158,13 @@ static NSString *placeholderItem = nil;
{
// Calling itemAtIndex: will eventually instantiate the collection view item,
// if it hasn't been done already.
if (index < [_items count])
{
NSCollectionViewItem *collectionItem = [self itemAtIndex: index];
NSView *view = [collectionItem view];
[view setFrame: [self frameForItemAtIndex: index]];
}
}
}
- (void) dealloc