Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/iphone
diff options
context:
space:
mode:
authorIlya Grechuhin <i.grechuhin@gmail.com>2016-06-15 14:47:38 +0300
committerIlya Grechuhin <i.grechuhin@gmail.com>2016-06-15 14:47:38 +0300
commitdfd2de664d1ec78b1a32c01a15541cf7cddb33e8 (patch)
tree33ea431040db4bb1f87e47d789643288da411f09 /iphone
parent5a05d7cbc4f0c44e7730d4a9bc4b656eb173c351 (diff)
[ios] Fixed indexPath retrieval.
Diffstat (limited to 'iphone')
-rw-r--r--iphone/Maps/Classes/Editor/MWMEditorViewController.mm2
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)