forked from organicmaps/organicmaps
[editor] Fix localized street names when editing
This commit is contained in:
parent
cc67f45e62
commit
9e14293f95
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue