* 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
This commit is contained in:
Jürgen Spitzmüller 2007-05-14 08:48:51 +00:00
parent 84e052f6f2
commit cd4de3a641
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2007-05-14 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
* 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 <j.spitzmueller@gmx.de>
* lyxfunc.C (dispatch): do not attempt to toggle math insets

View File

@ -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;