From: Stefan Schimanski Date: Mon, 11 Jun 2007 10:24:20 +0000 (+0000) Subject: * cursor forward's behavior depends on bidi level in paragraph. So it's not X-Git-Tag: 1.6.10~9423 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=7b0e35b9330ff27326a4afd3a87f418730a2d438;p=features.git * cursor forward's behavior depends on bidi level in paragraph. So it's not appropiate for entering a math inset. The "crash" in #2446 was due to the dispatch not doing anything. Hence the cursor was still in text and the assertion was triggered. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18737 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/Text3.cpp b/src/Text3.cpp index c02773c77e..d3a4d376e6 100644 --- a/src/Text3.cpp +++ b/src/Text3.cpp @@ -1374,7 +1374,7 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd) case LFUN_MATH_DELIM: case LFUN_MATH_BIGDELIM: { cur.insert(new InsetMathHull(hullSimple)); - cur.dispatch(FuncRequest(LFUN_CHAR_FORWARD)); + checkAndActivateInset(cur, true); BOOST_ASSERT(cur.inMathed()); cur.dispatch(cmd); break;