diff options
author | Ilya Grechuhin <i.grechuhin@gmail.com> | 2016-06-15 14:47:38 +0300 |
---|---|---|
committer | Ilya Grechuhin <i.grechuhin@gmail.com> | 2016-06-15 14:47:38 +0300 |
commit | dfd2de664d1ec78b1a32c01a15541cf7cddb33e8 (patch) | |
tree | 33ea431040db4bb1f87e47d789643288da411f09 /iphone | |
parent | 5a05d7cbc4f0c44e7730d4a9bc4b656eb173c351 (diff) |
[ios] Fixed indexPath retrieval.
Diffstat (limited to 'iphone')
-rw-r--r-- | iphone/Maps/Classes/Editor/MWMEditorViewController.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/iphone/Maps/Classes/Editor/MWMEditorViewController.mm b/iphone/Maps/Classes/Editor/MWMEditorViewController.mm index e7466262e2..d77f25bfea 100644 --- a/iphone/Maps/Classes/Editor/MWMEditorViewController.mm +++ b/iphone/Maps/Classes/Editor/MWMEditorViewController.mm @@ -911,7 +911,7 @@ void registerCellsForTableView(vector<MWMPlacePageCellType> const & cells, UITab - (void)cell:(MWMTableViewCell *)cell changedText:(NSString *)changeText { NSAssert(changeText != nil, @"String can't be nil!"); - NSIndexPath * indexPath = [self.tableView indexPathForCell:cell]; + NSIndexPath * indexPath = [self.tableView indexPathForRowAtPoint:cell.center]; MWMPlacePageCellType const cellType = [self cellTypeForIndexPath:indexPath]; string const val = changeText.UTF8String; switch (cellType) |