From 84e052f6f288eaa1cbad0d727727d2ee80db42f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Spitzm=C3=BCller?= Date: Sat, 12 May 2007 11:53:26 +0000 Subject: [PATCH] * src/lyxfunc.C (dispatch): do not attempt to toggle math insets via ALL_INSETS_TOGGLE(partially fixes bug 3358). Actually, I'm not sure what to write in status14, since lyx still asserts. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@18278 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/ChangeLog | 5 +++++ src/lyxfunc.C | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 34d650509f..c018aaa201 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2007-05-12 Jürgen Spitzmüller + + * lyxfunc.C (dispatch): do not attempt to toggle math insets + via ALL_INSETS_TOGGLE (partially fixes bug 3358). + 2007-04-10 Jürgen Spitzmüller * text3.C (dispatch): fix undo in LFUN_QUOTE (bug 3439). diff --git a/src/lyxfunc.C b/src/lyxfunc.C index cde90a4b0c..2c162543c1 100644 --- a/src/lyxfunc.C +++ b/src/lyxfunc.C @@ -1440,8 +1440,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->asMathInset() + && (inset_code == InsetBase::NO_CODE + || inset_code == it->lyxCode())) { LCursor tmpcur = cur; tmpcur.pushLeft(*it); it->dispatch(tmpcur, fr);