]> git.lyx.org Git - lyx.git/commitdiff
fix assertion when inserting math inset
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 23 Jun 2009 14:47:29 +0000 (14:47 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 23 Jun 2009 14:47:29 +0000 (14:47 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30244 a592a061-630c-0410-9148-cb99ea01b6c8

src/Text3.cpp

index 8dc1d538c9aab783ad5461722ff75657455b0fec..cf76341c8216ea230716d6bc0276fb67845b1343 100644 (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();