[editor] Called invalidate after roll back changes.

This commit is contained in:
VladiMihaylenko 2016-04-28 12:58:03 +03:00 committed by Alex Zolotarev
parent b20071e620
commit 1dfe2ed358
2 changed files with 3 additions and 1 deletions

View file

@ -313,7 +313,7 @@ void Editor::ClearAllLocalEdits()
{
m_features.clear();
Save(GetEditorFilePath());
m_invalidateFn();
Invalidate();
}
Editor::FeatureStatus Editor::GetFeatureStatus(MwmSet::MwmId const & mwmId, uint32_t index) const
@ -473,6 +473,7 @@ bool Editor::RollBackChanges(FeatureID const & fid)
return false;
RemoveFeatureFromStorageIfExists(fid.m_mwmId, fid.m_index);
Invalidate();
return true;
}

View file

@ -35,6 +35,7 @@ public:
using TFeatureOriginalStreetFn = function<string(FeatureType & /*ft*/)>;
using TForEachFeaturesNearByFn =
function<void(TFeatureTypeFn && /*fn*/, m2::PointD const & /*mercator*/)>;
enum class UploadResult
{
Success,