fix assertion when inserting math inset

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30244 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2009-06-23 14:47:29 +00:00
parent 01b290e2dd
commit 7e5bdec673

View File

@ -2030,10 +2030,9 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd)
break;
}
if (lyxrc.spellcheck_continuously) {
// Profit from this occasion to spellcheck current word.
if (lyxrc.spellcheck_continuously && cur.inTexted())
// Take this opportunity to spellcheck current word.
cur.paragraph().isMisspelled(cur.pos());
}
needsUpdate |= (cur.pos() != cur.lastpos()) && cur.selection();