mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 18:08:10 +00:00
#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:
parent
5f9230fd3e
commit
8d5acc2235
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user