From: Jürgen Spitzmüller Date: Mon, 9 Apr 2007 09:31:56 +0000 (+0000) Subject: * src/lyxfunc.C (dispatch): X-Git-Tag: 1.6.10~10310 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=c03a223b769382fc42e4d90d6491f22690bf8632;p=lyx.git * src/lyxfunc.C (dispatch): - do not attempt to toggle math insets via ALL_INSETS_TOGGLE (fixes bug 3358) git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17756 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/lyxfunc.C b/src/lyxfunc.C index f0978b48ef..2c68a83f10 100644 --- a/src/lyxfunc.C +++ b/src/lyxfunc.C @@ -1563,8 +1563,9 @@ void LyXFunc::dispatch(FuncRequest const & cmd) InsetIterator it = inset_iterator_begin(inset); InsetIterator const end = inset_iterator_end(inset); for (; it != end; ++it) { - if (inset_code == InsetBase::NO_CODE - || inset_code == it->lyxCode()) { + if (!it->asInsetMath() + && (inset_code == InsetBase::NO_CODE + || inset_code == it->lyxCode())) { LCursor tmpcur = cur; tmpcur.pushLeft(*it); it->dispatch(tmpcur, fr);