From 465e1f011fa5b44b2873030e09fbf1631b069046 Mon Sep 17 00:00:00 2001 From: McCabe Maxsted Date: Wed, 15 Sep 2010 11:20:50 -0700 Subject: More spell checking cleanup --- linden/indra/llui/lllineeditor.cpp | 6 +++--- linden/indra/llui/lltexteditor.cpp | 11 ++++++----- 2 files changed, 9 insertions(+), 8 deletions(-) (limited to 'linden/indra/llui') diff --git a/linden/indra/llui/lllineeditor.cpp b/linden/indra/llui/lllineeditor.cpp index e95af79..9c68fec 100644 --- a/linden/indra/llui/lllineeditor.cpp +++ b/linden/indra/llui/lllineeditor.cpp @@ -548,7 +548,7 @@ void LLLineEditor::spell_show(void * data) if( tempBind && line) { - if (tempBind->word=="Show Misspellings") + if (tempBind->word == "Show Misspellings") { line->setShowMisspellings(TRUE); } @@ -813,7 +813,7 @@ BOOL LLLineEditor::handleRightMouseDown( S32 x, S32 y, MASK mask ) SpellMenuBind * tempStruct = new SpellMenuBind; tempStruct->origin = this; - if (glggHunSpell->mSpellCheckHighlight) + if (glggHunSpell->getSpellCheckHighlight()) { tempStruct->word = "Hide Misspellings"; } @@ -1917,7 +1917,7 @@ void LLLineEditor::drawMisspelled(LLRect background) } } - if (glggHunSpell->mSpellCheckHighlight) + if (glggHunSpell->getSpellCheckHighlight()) { for (int i =0; i<(int)misspellLocations.size(); i++) { diff --git a/linden/indra/llui/lltexteditor.cpp b/linden/indra/llui/lltexteditor.cpp index d2469c3..cf35ee7 100644 --- a/linden/indra/llui/lltexteditor.cpp +++ b/linden/indra/llui/lltexteditor.cpp @@ -486,12 +486,13 @@ void LLTextEditor::spell_show(void * data) SpellMenuBind* tempBind = (SpellMenuBind*)data; LLTextEditor* line = tempBind->origin; - if(tempBind && line) + if (tempBind && line) { - if(tempBind->word=="Show Misspellings") + if (tempBind->word == "Show Misspellings") { line->setShowMisspellings(TRUE); - }else + } + else { line->setShowMisspellings(FALSE); } @@ -1508,7 +1509,7 @@ BOOL LLTextEditor::handleRightMouseDown( S32 x, S32 y, MASK mask ) SpellMenuBind * tempStruct = new SpellMenuBind; tempStruct->origin = this; - if (glggHunSpell->mSpellCheckHighlight) + if (glggHunSpell->getSpellCheckHighlight()) { tempStruct->word = "Hide Misspellings"; } @@ -3153,7 +3154,7 @@ void LLTextEditor::drawMisspelled() } } //draw - if (glggHunSpell->mSpellCheckHighlight) + if (glggHunSpell->getSpellCheckHighlight()) { for (int i = 0; i<(int)misspellLocations.size() ;i++) { -- cgit v1.1