From ef23aba6de750363fb1ab34d67064165e56ade0c Mon Sep 17 00:00:00 2001 From: Ianos Gnatiuc Date: Mon, 27 Mar 2006 18:39:27 +0000 Subject: [PATCH] Win32: Fixed addition of new words to MS Spell user dictionary --- docs/notework.txt | 2 ++ goldlib/gall/gespell.cpp | 2 +- goldlib/gall/gespell.h | 6 ------ 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/docs/notework.txt b/docs/notework.txt index 6a83549..c840650 100644 --- a/docs/notework.txt +++ b/docs/notework.txt @@ -10,6 +10,8 @@ ______________________________________________________________________ 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. = Snapshot for the March 26, 2006. diff --git a/goldlib/gall/gespell.cpp b/goldlib/gall/gespell.cpp index 4da8507..deb95f8 100644 --- a/goldlib/gall/gespell.cpp +++ b/goldlib/gall/gespell.cpp @@ -641,9 +641,9 @@ cleanup0: void CSpellChecker::Close() { if (!IsInited()) return; + UnLoad(); mLangs.clear(); mInited = false; - mLang = NULL; } diff --git a/goldlib/gall/gespell.h b/goldlib/gall/gespell.h index abc9876..fa4ac7f 100644 --- a/goldlib/gall/gespell.h +++ b/goldlib/gall/gespell.h @@ -68,10 +68,6 @@ public: mToDicTable = mToLocTable = NULL; } - virtual ~CSpellLang() {} - - void Close() { UnLoad(); } - virtual bool Load(const char *codeset, const char *userdic) = 0; virtual void UnLoad() = 0; @@ -208,7 +204,6 @@ private: public: CMSSpellLang() { mLibrary = NULL; } - ~CMSSpellLang() { Close(); } bool Init(HKEY hKey, const char *name); @@ -240,7 +235,6 @@ private: public: CMYSpellLang() { mMSpell = NULL; } - ~CMYSpellLang() { Close(); } bool Init(const gdirentry *entry);