From 2bce4f8c2e2e19506310b5831bef98c35a3fa00f Mon Sep 17 00:00:00 2001 From: Dmitry Yunitsky Date: Wed, 4 May 2016 14:24:47 +0300 Subject: [PATCH] [ios] Used correct method for feature rollback. --- iphone/Maps/Classes/Editor/MWMEditorViewController.mm | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/iphone/Maps/Classes/Editor/MWMEditorViewController.mm b/iphone/Maps/Classes/Editor/MWMEditorViewController.mm index 95c9efab2e..dceae2db16 100644 --- a/iphone/Maps/Classes/Editor/MWMEditorViewController.mm +++ b/iphone/Maps/Classes/Editor/MWMEditorViewController.mm @@ -817,14 +817,9 @@ void registerCellsForTableView(vector 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]; };