[ios] Used correct method for feature rollback.

This commit is contained in:
Dmitry Yunitsky 2016-05-04 14:24:47 +03:00 committed by Vladimir Byko-Ianko
parent 990eea1bf1
commit 2bce4f8c2e

View file

@ -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];
};