Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArsentiy Milchakov <milcars@mapswithme.com>2018-03-01 16:04:37 +0300
committerAleksandr Zatsepin <alexzatsepin@users.noreply.github.com>2018-03-05 12:02:52 +0300
commit65c404f0dcd6716aedae8adf4dc18a799f103858 (patch)
treed6b1e86037ad193c78e63b6c82e8c0e43ff7824b /indexer
parentbd6756308158cfd0c15eba654a6b71a9d37a35e6 (diff)
[editor] changing default name automatically fix.
Diffstat (limited to 'indexer')
-rw-r--r--indexer/editable_map_object.cpp3
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();