From: Stephan Witt Date: Sun, 2 Jan 2011 11:31:28 +0000 (+0000) Subject: #7201 return "correct" wrong spelled word when before a dot - exclude the dot from... X-Git-Tag: 2.0.0~1209 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=8d5acc2235f91d811554a761db17b5bd758e4b9a;p=lyx.git #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 --- diff --git a/src/Paragraph.cpp b/src/Paragraph.cpp index 4d17205972..7928917ba6 100644 --- a/src/Paragraph.cpp +++ b/src/Paragraph.cpp @@ -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); } } }