Skip to content

Commit

Permalink
Merge pull request gmoledina#58 from PongPong/master
Browse files Browse the repository at this point in the history
Fixed issue gmoledina#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];

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;
Expand Down

0 comments on commit 215900f

Please sign in to comment.