From: Jean-Marc Lasgouttes Date: Tue, 23 Jun 2009 14:47:29 +0000 (+0000) Subject: fix assertion when inserting math inset X-Git-Tag: 2.0.0~6216 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=7e5bdec673f5c2618470e60f6a22143e2b186f4b;p=features.git fix assertion when inserting math inset git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30244 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/Text3.cpp b/src/Text3.cpp index 8dc1d538c9..cf76341c82 100644 --- a/src/Text3.cpp +++ b/src/Text3.cpp @@ -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();