forked from organicmaps/organicmaps
[editor] Called invalidate after roll back changes.
This commit is contained in:
parent
b20071e620
commit
1dfe2ed358
2 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue