Skip to content
Snippets Groups Projects
Commit 76234b48 authored by Kitty Barnett's avatar Kitty Barnett
Browse files

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

parent 53222ef5
No related branches found
No related tags found
No related merge requests found
...@@ -142,7 +142,7 @@ void LLSpellChecker::addToIgnoreList(const std::string& word) ...@@ -142,7 +142,7 @@ void LLSpellChecker::addToIgnoreList(const std::string& word)
{ {
std::string word_lower(word); std::string word_lower(word);
LLStringUtil::toLower(word_lower); 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); mIgnoreList.push_back(word_lower);
addToDictFile(getDictionaryUserPath() + mDictFile + DICT_IGNORE_SUFFIX + ".dic", word_lower); addToDictFile(getDictionaryUserPath() + mDictFile + DICT_IGNORE_SUFFIX + ".dic", word_lower);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment