forked from organicmaps/organicmaps
Editor::ClearAllLocalEdits
This commit is contained in:
parent
bf29f97dcc
commit
b9468995cc
2 changed files with 9 additions and 0 deletions
|
@ -395,6 +395,13 @@ void Editor::Save(string const & fullFilePath) const
|
|||
}
|
||||
}
|
||||
|
||||
void Editor::ClearAllLocalEdits()
|
||||
{
|
||||
m_features.clear();
|
||||
Save(GetEditorFilePath());
|
||||
m_invalidateFn();
|
||||
}
|
||||
|
||||
Editor::FeatureStatus Editor::GetFeatureStatus(MwmSet::MwmId const & mwmId, uint32_t index) const
|
||||
{
|
||||
// Most popular case optimization.
|
||||
|
|
|
@ -54,6 +54,8 @@ public:
|
|||
void SetFeatureOriginalStretFn(TFeatureOriginalStreetFn const & fn) { m_getOriginalFeatureStreetFn = fn; }
|
||||
|
||||
void LoadMapEdits();
|
||||
/// Resets editor to initial state: no any edits or created/deleted features.
|
||||
void ClearAllLocalEdits();
|
||||
|
||||
using TFeatureIDFunctor = function<void(FeatureID const &)>;
|
||||
void ForEachFeatureInMwmRectAndScale(MwmSet::MwmId const & id,
|
||||
|
|
Loading…
Add table
Reference in a new issue