From eaeea178eabb3f404589ea260b806031a6189416 Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Fri, 18 May 2007 09:48:26 +0000 Subject: [PATCH] LFUN_MATH_foo: Add assertion to prevent recursive loop in RTL mode. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18400 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/Text3.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Text3.cpp b/src/Text3.cpp index ca021357c4..4085b75a89 100644 --- a/src/Text3.cpp +++ b/src/Text3.cpp @@ -1337,6 +1337,7 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd) case LFUN_MATH_BIGDELIM: { cur.insert(new InsetMathHull(hullSimple)); cur.dispatch(FuncRequest(LFUN_CHAR_FORWARD)); + BOOST_ASSERT(cur.inMathed()); cur.dispatch(cmd); break; }