aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/lgghunspell_wrapper.cpp
diff options
context:
space:
mode:
authorthickbrick2010-10-08 00:04:15 +0200
committerthickbrick2010-10-08 00:04:15 +0200
commit32369bbd2728f34f1bcc9fb68a1a191e0b16c827 (patch)
tree6632a105b699b775e5740fa65105923ed464c69c /linden/indra/newview/lgghunspell_wrapper.cpp
parentFix bug #611: Context menu spell checker suggestions broken. (diff)
downloadmeta-impy-32369bbd2728f34f1bcc9fb68a1a191e0b16c827.zip
meta-impy-32369bbd2728f34f1bcc9fb68a1a191e0b16c827.tar.gz
meta-impy-32369bbd2728f34f1bcc9fb68a1a191e0b16c827.tar.bz2
meta-impy-32369bbd2728f34f1bcc9fb68a1a191e0b16c827.tar.xz
Fix bug #612: Option to highlight misspeld words doesn't persist between sessions.
Diffstat (limited to 'linden/indra/newview/lgghunspell_wrapper.cpp')
-rw-r--r--linden/indra/newview/lgghunspell_wrapper.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/linden/indra/newview/lgghunspell_wrapper.cpp b/linden/indra/newview/lgghunspell_wrapper.cpp
index aa4507c..9548c4f 100644
--- a/linden/indra/newview/lgghunspell_wrapper.cpp
+++ b/linden/indra/newview/lgghunspell_wrapper.cpp
@@ -472,7 +472,7 @@ static char * languageCodesraw[]={
472lggHunSpell_Wrapper::lggHunSpell_Wrapper() 472lggHunSpell_Wrapper::lggHunSpell_Wrapper()
473{ 473{
474 //languageCodes(begin(languageCodesraw), end(languageCodesraw)); 474 //languageCodes(begin(languageCodesraw), end(languageCodesraw));
475 mSpellCheckHighlight = rebind_llcontrol<BOOL>("EmeraldSpellDisplay", &gSavedSettings, false); 475 mSpellCheckHighlight = rebind_llcontrol<BOOL>("EmeraldSpellDisplay", &gSavedSettings, true);
476} 476}
477 477
478lggHunSpell_Wrapper::~lggHunSpell_Wrapper() 478lggHunSpell_Wrapper::~lggHunSpell_Wrapper()
@@ -963,8 +963,5 @@ void lggHunSpell_Wrapper::editCustomButton()
963 963
964void lggHunSpell_Wrapper::setSpellCheckHighlight(BOOL highlight) 964void lggHunSpell_Wrapper::setSpellCheckHighlight(BOOL highlight)
965{ 965{
966 if (mSpellCheckHighlight) 966 gSavedSettings.setBOOL("EmeraldSpellDisplay", highlight);
967 {
968 *mSpellCheckHighlight = highlight;
969 }
970} 967}