diff options
Diffstat (limited to 'coding/transliteration.cpp')
-rw-r--r-- | coding/transliteration.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/coding/transliteration.cpp b/coding/transliteration.cpp index e09d8b25c6..ca2f84e643 100644 --- a/coding/transliteration.cpp +++ b/coding/transliteration.cpp @@ -53,7 +53,11 @@ bool Transliteration::Transliterate(std::string const & str, int8_t langCode, st if (str.empty()) return false; - auto const transliteratorId = StringUtf8Multilang::GetTransliteratorIdByCode(langCode); + std::string const transliteratorId(StringUtf8Multilang::GetTransliteratorIdByCode(langCode)); + + if (transliteratorId.empty()) + return false; + auto const & it = m_transliterators.find(transliteratorId); if (it == m_transliterators.end()) { |