]> git.lyx.org Git - lyx.git/blobdiff - src/lyxfunc.C
Add margin to paragraph dialog.
[lyx.git] / 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);