forked from organicmaps/organicmaps
[ios] Used correct method for feature rollback.
This commit is contained in:
parent
990eea1bf1
commit
2bce4f8c2e
1 changed files with 2 additions and 7 deletions
|
@ -817,14 +817,9 @@ void registerCellsForTableView(vector<MWMPlacePageCellType> const & cells, UITab
|
|||
kStatEditorMWMName : @(fid.GetMwmName().c_str()),
|
||||
kStatEditorMWMVersion : @(fid.GetMwmVersion()),
|
||||
kStatLat : @(latLon.lat), kStatLon : @(latLon.lon)}];
|
||||
if (!osm::Editor::Instance().RollBackChanges(fid))
|
||||
NSAssert(false, @"We shouldn't call this if we can't roll back!");
|
||||
|
||||
auto & f = GetFramework();
|
||||
if (isCreated)
|
||||
f.DeactivateMapSelection(true);
|
||||
else
|
||||
f.UpdatePlacePageInfoForCurrentSelection();
|
||||
if (!f.RollBackChanges(fid))
|
||||
NSAssert(false, @"We shouldn't call this if we can't roll back!");
|
||||
|
||||
[self backTap];
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue