[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-bugs-dist
Subject: [Bug 57357] Corrected mispelled word has curved red line.
From: David Faure <faure () kde ! org>
Date: 2004-04-25 23:05:10
Message-ID: 20040425230510.19525.qmail () ktown ! kde ! org
[Download RAW message or body]
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
http://bugs.kde.org/show_bug.cgi?id=57357
faure kde org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
------- Additional Comments From faure kde org 2004-04-26 01:05 -------
CVS commit by faure:
Ensure that words added to the personal ispell dictionary (using RMB on the \
background spellchecking) get saved (#33467, #57357)
CCMAIL: 33467 bugs kde org, 57357-done bugs kde org
M +5 -8 kword/kwview.cc 1.991.2.6
M +1 -0 lib/CHANGES 1.17.2.22
M +10 -3 lib/kotext/koBgSpellCheck.cc 1.37.2.4
M +1 -2 lib/kotext/kospell.cc 1.11.2.1
--- koffice/kword/kwview.cc #1.991.2.5:1.991.2.6
@ -5435,13 +5435,10 @ void KWView::clearSpellChecker()
{
kdDebug(32001) << "KWView::clearSpellChecker" << endl;
+ if ( m_spell.kospell ) {
+ m_spell.kospell->cleanUp();
delete m_spell.kospell;
- m_spell.kospell=0;
-#if 0
- if ( m_spell.kspell ) {
- m_spell.kspell->cleanUp();
- delete m_spell.kspell;
- m_spell.kspell = 0;
+ m_spell.kospell = 0;
}
-#endif
+
delete m_spell.textIterator;
m_spell.textIterator = 0L;
--- koffice/lib/CHANGES #1.17.2.21:1.17.2.22
@ -39,4 +39,5 @
- Fixed multiple connections in spell dialog, which made it skip some words (#75532)
- Use ISO-8859-1 with ispell if the user has chosen ISO-8859-15 (#33108)
+- Ensure that words added to the personal ispell dictionary get saved (#33467, \
#57357)
KoWMF:
--- koffice/lib/kotext/koBgSpellCheck.cc #1.37.2.3:1.37.2.4
@ -65,5 +65,8 @ KoBgSpellCheck::KoBgSpellCheck()
KoBgSpellCheck::~KoBgSpellCheck()
{
+ if ( m_bgSpell.kspell ) {
+ m_bgSpell.kspell->cleanUp();
delete m_bgSpell.kspell;
+ }
delete d->m_pKSpellConfig;
delete d;
@ -372,4 +375,5 @ void KoBgSpellCheck::spellCheckerFinishe
#endif
KoSpell::spellStatus status = m_bgSpell.kspell->status();
+ m_bgSpell.kspell->cleanUp();
delete m_bgSpell.kspell;
m_bgSpell.kspell = 0;
@ -422,6 +426,9 @ void KoBgSpellCheck::stopSpellChecking()
kdDebug(32500) << "KoBgSpellCheck::stopSpellChecking" << endl;
#endif
+ if ( m_bgSpell.kspell ) {
+ m_bgSpell.kspell->cleanUp();
delete m_bgSpell.kspell;
m_bgSpell.kspell = 0;
+ }
m_bgSpell.currentParag = 0;
m_bgSpell.currentTextObj = 0;
--- koffice/lib/kotext/kospell.cc #1.11:1.11.2.1
@ -289,4 +289,5 @ bool KoSpell::addPersonal(const QString
w.prepend ("*");
+ w.append( "\n#" ); // save immediately, there's no time on destruction
return proc->fputs(w);
@ -516,6 +517,4 @ void KoSpell::cleanUp ()
if (m_status == Running)
{
-// if (personaldict)
-// writePersonalDictionary();
m_status = Cleaning;
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic