From 8fc14655b5a4b8835fc13541d6da66247c1dd243 Mon Sep 17 00:00:00 2001 From: leper Date: Sun, 11 Jan 2015 19:14:03 +0000 Subject: [PATCH] Improve 524a942b52. Refs #2637. This was SVN commit r16140. --- source/third_party/tinygettext/src/dictionary.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/third_party/tinygettext/src/dictionary.cpp b/source/third_party/tinygettext/src/dictionary.cpp index 2f1875c096..620af6cd86 100644 --- a/source/third_party/tinygettext/src/dictionary.cpp +++ b/source/third_party/tinygettext/src/dictionary.cpp @@ -165,11 +165,11 @@ void Dictionary::add_translation(const std::string& msgid, const std::string& msgstr) { std::vector& vec = entries[msgid]; - if (vec.empty() || msgstr.compare(vec[0]) == 0) + if (vec.empty()) { vec.push_back(msgstr); } - else + else if (vec[0] != msgstr) { log_warning << "collision in add_translation: '" << msgid << "' -> '" << msgstr << "' vs '" << vec[0] << "'" << std::endl;