Win32: Fixed addition of new words to MS Spell user dictionary

This commit is contained in:
Ianos Gnatiuc 2006-03-27 18:39:27 +00:00
parent 434c8db690
commit ef23aba6de
3 changed files with 3 additions and 7 deletions

View File

@ -10,6 +10,8 @@ ______________________________________________________________________
Notes for GoldED+ 1.1.5, /snapshot/ Notes for GoldED+ 1.1.5, /snapshot/
______________________________________________________________________ ______________________________________________________________________
- Win32: Fixed addition of new words to MS Spell user dictionary.
- Set default color for spell checker to white on black. - Set default color for spell checker to white on black.
= Snapshot for the March 26, 2006. = Snapshot for the March 26, 2006.

View File

@ -641,9 +641,9 @@ cleanup0:
void CSpellChecker::Close() void CSpellChecker::Close()
{ {
if (!IsInited()) return; if (!IsInited()) return;
UnLoad();
mLangs.clear(); mLangs.clear();
mInited = false; mInited = false;
mLang = NULL;
} }

View File

@ -68,10 +68,6 @@ public:
mToDicTable = mToLocTable = NULL; mToDicTable = mToLocTable = NULL;
} }
virtual ~CSpellLang() {}
void Close() { UnLoad(); }
virtual bool Load(const char *codeset, const char *userdic) = 0; virtual bool Load(const char *codeset, const char *userdic) = 0;
virtual void UnLoad() = 0; virtual void UnLoad() = 0;
@ -208,7 +204,6 @@ private:
public: public:
CMSSpellLang() { mLibrary = NULL; } CMSSpellLang() { mLibrary = NULL; }
~CMSSpellLang() { Close(); }
bool Init(HKEY hKey, const char *name); bool Init(HKEY hKey, const char *name);
@ -240,7 +235,6 @@ private:
public: public:
CMYSpellLang() { mMSpell = NULL; } CMYSpellLang() { mMSpell = NULL; }
~CMYSpellLang() { Close(); }
bool Init(const gdirentry *entry); bool Init(const gdirentry *entry);