fix completely stupid commit.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16670 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2007-01-13 20:05:48 +00:00
parent 3500af60ba
commit cb158d8a13

View File

@ -215,14 +215,16 @@ public:
#endif
setlocale(LC_CTYPE, oldCTYPE.c_str());
if (!cache_.insert(std::make_pair(m, translated)).second) {
std::pair<TranslationCache::iterator, bool> result =
cache_.insert(std::make_pair(m, translated));
if (!result.second) {
lyxerr << "WARNING: cannot fill-in gettext cache in Messages::get()!" << endl;
dummy_string_ = translated;
return dummy_string_;
}
it = cache_.insert(std::make_pair(m, translated)).first;
return it->second;
return result.first->second;
}
private:
///