#7201 return "correct" wrong spelled word when before a dot - exclude the dot from spell checker result

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37062 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Stephan Witt 2011-01-02 11:31:28 +00:00
parent 5f9230fd3e
commit 8d5acc2235

View File

@ -3634,6 +3634,11 @@ SpellChecker::Result Paragraph::spellCheck(pos_type & from, pos_type & to,
LYXERR(Debug::GUI, "misspelled word is correct with dot: \"" <<
word << "\" [" <<
from << ".." << to << "]");
} else {
// spell check with dot appended failed
// restore original word/lang value
word = asString(from, to, AS_STR_INSETS | AS_STR_SKIPDELETE);
wl = WordLangTuple(word, lang);
}
}
}