FIRE-29649: Crash when opening spellcheck settings
parent
ae38de8871
commit
21809adba0
|
|
@ -50,7 +50,7 @@ LLSpellChecker::LLSpellChecker()
|
|||
: mHunspell(NULL)
|
||||
{
|
||||
// Load initial dictionary information
|
||||
refreshDictionaryMap();
|
||||
//refreshDictionaryMap(); // <FS:Ansariel> FIRE-29649: Crash when opening spellcheck settings
|
||||
}
|
||||
|
||||
LLSpellChecker::~LLSpellChecker()
|
||||
|
|
@ -58,6 +58,14 @@ LLSpellChecker::~LLSpellChecker()
|
|||
delete mHunspell;
|
||||
}
|
||||
|
||||
// <FS:Ansariel> FIRE-29649: Crash when opening spellcheck settings
|
||||
void LLSpellChecker::initSingleton()
|
||||
{
|
||||
// Load initial dictionary information
|
||||
refreshDictionaryMap();
|
||||
}
|
||||
// </FS:Ansariel>
|
||||
|
||||
bool LLSpellChecker::checkSpelling(const std::string& word) const
|
||||
{
|
||||
if ( (!mHunspell) || (word.length() < 3) || (0 != mHunspell->spell(word.c_str())) )
|
||||
|
|
|
|||
|
|
@ -47,6 +47,7 @@ public:
|
|||
protected:
|
||||
void addToDictFile(const std::string& dict_path, const std::string& word);
|
||||
void initHunspell(const std::string& dict_language);
|
||||
void initSingleton(); // <FS:Ansariel> FIRE-29649: Crash when opening spellcheck settings
|
||||
|
||||
public:
|
||||
typedef std::list<std::string> dict_list_t;
|
||||
|
|
|
|||
Loading…
Reference in New Issue