]> git.lyx.org Git - features.git/commitdiff
* cursor forward's behavior depends on bidi level in paragraph. So it's not
authorStefan Schimanski <sts@lyx.org>
Mon, 11 Jun 2007 10:24:20 +0000 (10:24 +0000)
committerStefan Schimanski <sts@lyx.org>
Mon, 11 Jun 2007 10:24:20 +0000 (10:24 +0000)
  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

index c02773c77ea0861de52c7d455e34e7015dc705aa..d3a4d376e69bc3b22f63a56b7c65c83fa749916f 100644 (file)
@@ -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;