Commits

Kitty Barnett committed cdd6fdd

STORM-276 FIXED "Add to Ignore" doesn't trigger

Comments (0)

Files changed (1)

indra/llui/llspellcheck.cpp

 {
 	std::string word_lower(word);
 	LLStringUtil::toLower(word_lower);
-	if (mIgnoreList.end() != std::find(mIgnoreList.begin(), mIgnoreList.end(), word_lower))
+	if (mIgnoreList.end() == std::find(mIgnoreList.begin(), mIgnoreList.end(), word_lower))
 	{
 		mIgnoreList.push_back(word_lower);
 		addToDictFile(getDictionaryUserPath() + mDictFile + DICT_IGNORE_SUFFIX + ".dic", word_lower);