mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-25 07:50:53 +00:00
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:
parent
a9cac5d99a
commit
f203fea7d7
2 changed files with 11 additions and 3 deletions
|
@ -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"
|
||||
|
|
|
@ -158,11 +158,14 @@ 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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue