Skip to content

Commit

Permalink
Fixed off by one error that causes crash when you remove a column, ca…
Browse files Browse the repository at this point in the history
…using issue danielctull#4.
  • Loading branch information
apike authored and th-in-gs committed Mar 8, 2012
1 parent 6fea514 commit 4af2969
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DTGridView.m
Expand Up @@ -243,7 +243,7 @@ - (void)removeCellWithInfo:(DTGridViewCellInfo *)info {

NSMutableArray *row = [gridCells objectAtIndex:info.yPosition];

if (info.xPosition > [row count]) return;
if (info.xPosition >= [row count]) return;

DTGridViewCell *cell = [row objectAtIndex:info.xPosition];

Expand Down

0 comments on commit 4af2969

Please sign in to comment.