Skip to content

Commit

Permalink
Merge pull request #58 from PongPong/master
Browse files Browse the repository at this point in the history
Fixed issue #44
  • Loading branch information
steipete committed Mar 17, 2012
2 parents e4dff0a + 793972a commit 215900f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GMGridView/API/GMGridView.m
Expand Up @@ -1424,7 +1424,7 @@ - (void)insertObjectAtIndex:(NSInteger)index
{ {
cell = [self newItemSubViewForPosition:index]; cell = [self newItemSubViewForPosition:index];


for (int i = index; i < _numberTotalItems; i++) for (int i = _numberToTotalItems - 1; i >= index; i--)
{ {
UIView *oldView = [self cellForItemAtIndex:i]; UIView *oldView = [self cellForItemAtIndex:i];
oldView.tag = oldView.tag + 1; oldView.tag = oldView.tag + 1;
Expand Down

1 comment on commit 215900f

@gmoledina
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There was a typo there. Fixed now.

Please sign in to comment.