From 76234b48256a93c6a0f9dd1d3807706b1039a181 Mon Sep 17 00:00:00 2001
From: Kitty Barnett <develop@catznip.com>
Date: Thu, 31 May 2012 17:08:14 +0200
Subject: [PATCH] STORM-276 FIXED "Add to Ignore" doesn't trigger

---
 indra/llui/llspellcheck.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/indra/llui/llspellcheck.cpp b/indra/llui/llspellcheck.cpp
index aa39e21a96c..bde3b567410 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);
-- 
GitLab