summaryrefslogtreecommitdiff
path: root/indra/llui/llspellcheck.cpp
diff options
context:
space:
mode:
authorKitty Barnett <develop@catznip.com>2012-05-31 17:08:14 +0200
committerKitty Barnett <develop@catznip.com>2012-05-31 17:08:14 +0200
commit76234b48256a93c6a0f9dd1d3807706b1039a181 (patch)
tree409fe8a0413ac60e9d53875b46b2f323e22884df /indra/llui/llspellcheck.cpp
parent53222ef517b97249df1e1a6db2e29c0d86b2e773 (diff)
STORM-276 FIXED "Add to Ignore" doesn't trigger
Diffstat (limited to 'indra/llui/llspellcheck.cpp')
-rw-r--r--indra/llui/llspellcheck.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/llui/llspellcheck.cpp b/indra/llui/llspellcheck.cpp
index aa39e21a96..bde3b56741 100644
--- a/indra/llui/llspellcheck.cpp
+++ b/indra/llui/llspellcheck.cpp
@@ -142,7 +142,7 @@ void LLSpellChecker::addToIgnoreList(const std::string& word)
{
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);