#6945 correct refresh range maximum on char erase

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35616 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Stephan Witt 2010-10-12 19:05:47 +00:00
parent 6cc0eee26a
commit 3167edeb48

View File

@ -153,6 +153,12 @@ public:
needsRefresh(pos);
}
void refreshLast(pos_type pos)
{
if (pos < refresh_.last)
refresh_.last = pos;
}
SpellChecker::Result getState(pos_type pos) const
{
SpellChecker::Result result = SpellChecker::WORD_OK;
@ -784,6 +790,7 @@ bool Paragraph::eraseChar(pos_type pos, bool trackChanges)
// Update list of misspelled positions
d->speller_state_.decreasePosAfterPos(pos);
d->speller_state_.refreshLast(size());
return true;
}