Permalink
Browse files

Merge pull request #58 from PongPong/master

Fixed issue #44
  • Loading branch information...
steipete committed Mar 17, 2012
2 parents e4dff0a + 793972a commit 215900fa5468992e0a2e86054f0fa53235dff726
Showing with 1 addition and 1 deletion.
  1. +1 −1 GMGridView/API/GMGridView.m
@@ -1424,7 +1424,7 @@ - (void)insertObjectAtIndex:(NSInteger)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];
oldView.tag = oldView.tag + 1;

1 comment on commit 215900f

@gmoledina

This comment has been minimized.

Show comment Hide comment
@gmoledina

gmoledina Mar 26, 2012

Owner

There was a typo there. Fixed now.

Owner

gmoledina commented on 215900f Mar 26, 2012

There was a typo there. Fixed now.

Please sign in to comment.