From cd4de3a6417abae41bdd6d8fabef77d1b5d23189 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Spitzm=C3=BCller?= Date: Mon, 14 May 2007 08:48:51 +0000 Subject: [PATCH] * src/lyxfunc.C (dispatch): assure math and tabular insets are really not toggled via ALL_INSETS_TOGGLE (fixes bug 3358). status14x entry already exists. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@18302 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/ChangeLog | 5 +++++ src/lyxfunc.C | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index c018aaa201..ab476a983c 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2007-05-14 Jürgen Spitzmüller + + * lyxfunc.C (dispatch): assure math and tabular insets are + really not toggled via ALL_INSETS_TOGGLE (fixes bug 3358). + 2007-05-12 Jürgen Spitzmüller * lyxfunc.C (dispatch): do not attempt to toggle math insets diff --git a/src/lyxfunc.C b/src/lyxfunc.C index 2c162543c1..9840fb6019 100644 --- a/src/lyxfunc.C +++ b/src/lyxfunc.C @@ -1441,11 +1441,13 @@ void LyXFunc::dispatch(FuncRequest const & cmd) InsetIterator const end = inset_iterator_end(inset); for (; it != end; ++it) { if (!it->asMathInset() + && it->lyxCode() != InsetBase::TABULAR_CODE && (inset_code == InsetBase::NO_CODE || inset_code == it->lyxCode())) { LCursor tmpcur = cur; tmpcur.pushLeft(*it); - it->dispatch(tmpcur, fr); + if (!tmpcur.inset().asMathInset()) + it->dispatch(tmpcur, fr); } } update = true;