X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FHunspellChecker.cpp;h=6dc6647b5cf4829687bc1418ef89dd9b707a09c4;hb=c8230ab0d0a919530c43c29395f4d9961498bf15;hp=ec5466f300d794644bdc2b6d7d45b9e62f01044d;hpb=b917c4e40f9f5cd3d101444600eddafcca54d6e3;p=lyx.git diff --git a/src/HunspellChecker.cpp b/src/HunspellChecker.cpp index ec5466f300..6dc6647b5c 100644 --- a/src/HunspellChecker.cpp +++ b/src/HunspellChecker.cpp @@ -47,7 +47,7 @@ typedef map LangPersonalWordList; typedef vector IgnoreList; -} // anon namespace +} // namespace struct HunspellChecker::Private @@ -86,7 +86,7 @@ struct HunspellChecker::Private const string dictDirectory(void) const { return "dicts"; } int maxLookupSelector(void) const { return 5; } const string HunspellDictionaryName(Language const * lang) { - return lang->variety().empty() + return lang->variety().empty() ? lang->code() : lang->code() + "-" + lang->variety(); }