diff options
author | Arsentiy Milchakov <milcars@mapswithme.com> | 2018-03-01 16:04:37 +0300 |
---|---|---|
committer | Aleksandr Zatsepin <alexzatsepin@users.noreply.github.com> | 2018-03-05 12:02:52 +0300 |
commit | 65c404f0dcd6716aedae8adf4dc18a799f103858 (patch) | |
tree | d6b1e86037ad193c78e63b6c82e8c0e43ff7824b /indexer | |
parent | bd6756308158cfd0c15eba654a6b71a9d37a35e6 (diff) |
[editor] changing default name automatically fix.
Diffstat (limited to 'indexer')
-rw-r--r-- | indexer/editable_map_object.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/indexer/editable_map_object.cpp b/indexer/editable_map_object.cpp index e46508c288..cd6b2fc001 100644 --- a/indexer/editable_map_object.cpp +++ b/indexer/editable_map_object.cpp @@ -1,7 +1,6 @@ #include "indexer/editable_map_object.hpp" #include "indexer/classificator.hpp" #include "indexer/cuisines.hpp" -#include "indexer/osm_editor.hpp" #include "indexer/postcodes_matcher.hpp" #include "base/control_flow.hpp" @@ -327,7 +326,7 @@ void EditableMapObject::SetName(string name, int8_t langCode) return; } - if (!name.empty() && !Editor::Instance().OriginalFeatureHasDefaultName(GetID())) + if (!name.empty() && !m_name.HasString(StringUtf8Multilang::kDefaultCode)) { const auto mwmInfo = GetID().m_mwmId.GetInfo(); |