diff options
author | Sergey Magidovich <mgsergio@mapswithme.com> | 2016-04-29 18:06:03 +0300 |
---|---|---|
committer | Vladimir Byko-Ianko <v.bykoianko@corp.mail.ru> | 2016-05-12 10:19:15 +0300 |
commit | f5b8d2e12efce80832ad058f564bc9204013e247 (patch) | |
tree | a7b2e69079fa657330e9d3d348becc96af3a5f5f /indexer/osm_editor.hpp | |
parent | 6e58ba0abc25d4737036c3efe8ac80ee74ea5c4b (diff) |
Reload edits on map update.
Diffstat (limited to 'indexer/osm_editor.hpp')
-rw-r--r-- | indexer/osm_editor.hpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/indexer/osm_editor.hpp b/indexer/osm_editor.hpp index c1738912e2..ad7ed90a40 100644 --- a/indexer/osm_editor.hpp +++ b/indexer/osm_editor.hpp @@ -22,7 +22,7 @@ namespace osm { -class Editor final +class Editor final : public MwmSet::Observer { public: using TFeatureTypeFn = function<void(FeatureType &)>; // Mimics Framework::TFeatureTypeFn. @@ -65,6 +65,12 @@ public: /// Resets editor to initial state: no any edits or created/deleted features. void ClearAllLocalEdits(); + void OnMapUpdated(platform::LocalCountryFile const &, + platform::LocalCountryFile const &) override + { + LoadMapEdits(); + } + using TFeatureIDFunctor = function<void(FeatureID const &)>; void ForEachFeatureInMwmRectAndScale(MwmSet::MwmId const & id, TFeatureIDFunctor const & f, |