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
This commit is contained in:
Abdelrazak Younes 2007-05-18 09:48:26 +00:00
parent d17b7b3221
commit eaeea178ea

View File

@ -1337,6 +1337,7 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd)
case LFUN_MATH_BIGDELIM: { case LFUN_MATH_BIGDELIM: {
cur.insert(new InsetMathHull(hullSimple)); cur.insert(new InsetMathHull(hullSimple));
cur.dispatch(FuncRequest(LFUN_CHAR_FORWARD)); cur.dispatch(FuncRequest(LFUN_CHAR_FORWARD));
BOOST_ASSERT(cur.inMathed());
cur.dispatch(cmd); cur.dispatch(cmd);
break; break;
} }