aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden
diff options
context:
space:
mode:
authorthickbrick2010-10-08 00:04:15 +0200
committerthickbrick2010-10-08 00:04:15 +0200
commit32369bbd2728f34f1bcc9fb68a1a191e0b16c827 (patch)
tree6632a105b699b775e5740fa65105923ed464c69c /linden
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')
-rw-r--r--linden/indra/newview/lgghunspell_wrapper.cpp7
-rw-r--r--linden/indra/newview/skins/default/xui/en-us/panel_preferences_advanced.xml2
2 files changed, 3 insertions, 6 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}
diff --git a/linden/indra/newview/skins/default/xui/en-us/panel_preferences_advanced.xml b/linden/indra/newview/skins/default/xui/en-us/panel_preferences_advanced.xml
index a0c9e28..c3ee726 100644
--- a/linden/indra/newview/skins/default/xui/en-us/panel_preferences_advanced.xml
+++ b/linden/indra/newview/skins/default/xui/en-us/panel_preferences_advanced.xml
@@ -139,7 +139,7 @@
139 name="EmeraldHelp_SpellCheck" tool_tip="Click here for help regarding the settings in this page." 139 name="EmeraldHelp_SpellCheck" tool_tip="Click here for help regarding the settings in this page."
140 right="490" width="18"/> 140 right="490" width="18"/>
141 <check_box bottom="-25" enabled="true" follows="left|top" font="SansSerifSmall" height="16" 141 <check_box bottom="-25" enabled="true" follows="left|top" font="SansSerifSmall" height="16"
142 label="Show misspelled words in red (requires restart)" left="12" mouse_opaque="true" name="EmeraldSpellDisplay" 142 label="Show misspelled words in red" left="12" mouse_opaque="true" name="EmeraldSpellDisplay"
143 control_name="EmeraldSpellDisplay" width="126"/> 143 control_name="EmeraldSpellDisplay" width="126"/>
144 <text bottom_delta="-30" follows="left|top" font="SansSerifSmall" height="16" left="12" 144 <text bottom_delta="-30" follows="left|top" font="SansSerifSmall" height="16" left="12"
145 name="EmSpell_txt1" width="512"> 145 name="EmSpell_txt1" width="512">