From 7b0e35b9330ff27326a4afd3a87f418730a2d438 Mon Sep 17 00:00:00 2001 From: Stefan Schimanski Date: Mon, 11 Jun 2007 10:24:20 +0000 Subject: [PATCH] * 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 --- src/Text3.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.2