Permalink
Browse files

Merge pull request #3 from bhauman/master

Just fixed a simple out of range error on the GestureTable app
  • Loading branch information...
2 parents c3f300b + 9232f0a commit 61087568d7418165ecd014f00b36244ba4ca2753 Laurent Sansonetti committed May 5, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 GestureTable/app/gesture_recognizer.rb
@@ -46,7 +46,7 @@ def scrollTable
def updateAddingIndexPathForCurrentLocation
indexPath = indexPathFromRecognizer(@longPressRecognizer)
- if indexPath != @addingIndexPath
+ if indexPath && indexPath != @addingIndexPath
@tableView.beginUpdates
@tableView.deleteRowsAtIndexPaths([@addingIndexPath], withRowAnimation: UITableViewRowAnimationNone)
@tableView.insertRowsAtIndexPaths([indexPath], withRowAnimation: UITableViewRowAnimationNone)

0 comments on commit 6108756

Please sign in to comment.