correct implementation of "mark whole paragraph" for spell check

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39501 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Stephan Witt 2011-08-20 13:48:19 +00:00
parent 90dc008182
commit e92c786618

View File

@ -400,7 +400,10 @@ public:
}
void requestSpellCheck(pos_type pos) {
speller_state_.needsRefresh(pos);
if (pos == -1)
speller_state_.needsCompleteRefresh(speller_state_.currentChangeNumber());
else
speller_state_.needsRefresh(pos);
}
void readySpellCheck() {
@ -3606,7 +3609,7 @@ Language * Paragraph::Private::getSpellLanguage(pos_type const from) const
void Paragraph::requestSpellCheck(pos_type pos)
{
d->requestSpellCheck(pos == -1 ? size() : pos);
d->requestSpellCheck(pos);
}