]> git.lyx.org Git - features.git/commitdiff
* src/lyxfunc.C (dispatch):
authorJürgen Spitzmüller <spitz@lyx.org>
Mon, 9 Apr 2007 09:31:56 +0000 (09:31 +0000)
committerJürgen Spitzmüller <spitz@lyx.org>
Mon, 9 Apr 2007 09:31:56 +0000 (09:31 +0000)
- 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

src/lyxfunc.C

index f0978b48ef03f17c43daf9c10fe592823ca41fcd..2c68a83f10a081acedb98354156c57812d62eac4 100644 (file)
@@ -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);