diff options
-rw-r--r-- | lingucomponent/source/languageguessing/simpleguesser.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lingucomponent/source/languageguessing/simpleguesser.cxx b/lingucomponent/source/languageguessing/simpleguesser.cxx index 0b8e59f7783c..5f18ebc01a7c 100644 --- a/lingucomponent/source/languageguessing/simpleguesser.cxx +++ b/lingucomponent/source/languageguessing/simpleguesser.cxx @@ -156,7 +156,7 @@ Guess SimpleGuesser::GuessPrimaryLanguage(const char* text) { vector<Guess> ret = GuessLanguage(text); if (!ret.empty()) - return GuessLanguage(text)[0]; + return ret[0]; return Guess(); } /** |