From 7e5bdec673f5c2618470e60f6a22143e2b186f4b Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Tue, 23 Jun 2009 14:47:29 +0000 Subject: [PATCH] fix assertion when inserting math inset git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30244 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/Text3.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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(); -- 2.39.2