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
path: root/map
diff options
context:
space:
mode:
authorIlya Zverev <zverik@textual.ru>2016-11-24 15:46:58 +0300
committerДобрый Ээх <bukharaev@gmail.com>2016-12-09 20:11:35 +0300
commit9e14293f950b39251c9cdb58641f1dc06874729b (patch)
tree1cef86dbd799643d6b3d686f1b4e2eb6803fee77 /map
parentcc67f45e62e28a37b064361af2c3ad0acb053f43 (diff)
[editor] Fix localized street names when editing
Diffstat (limited to 'map')
-rw-r--r--map/framework.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/map/framework.cpp b/map/framework.cpp
index 07c272339c..48605942f3 100644
--- a/map/framework.cpp
+++ b/map/framework.cpp
@@ -2863,7 +2863,10 @@ WARN_UNUSED_RESULT bool LocalizeStreet(Index const & index, FeatureID const & fi
if (!g.GetFeatureByIndex(fid.m_index, ft))
return false;
- ft.GetPreferredNames(result.m_defaultName, result.m_localizedName);
+ ft.GetName(StringUtf8Multilang::kDefaultCode, result.m_defaultName);
+ ft.GetReadableName(result.m_localizedName);
+ if (result.m_localizedName == result.m_defaultName)
+ result.m_localizedName.clear();
return true;
}