]> git.lyx.org Git - lyx.git/blobdiff - src/lyxfunc.C
Trivial fixes to some warnings thrown up by MSVS.Net 2003.
[lyx.git] / src / lyxfunc.C
index 5429843cfd30bd1054cfd18f4b6c3711fd70a5fb..936d4916a33c47bcf7523b3862f09a7f328bbc68 100644 (file)
@@ -1438,8 +1438,11 @@ void LyXFunc::dispatch(FuncRequest const & cmd)
                        InsetIterator const end = inset_iterator_end(inset);
                        for (; it != end; ++it) {
                                if (inset_code == InsetBase::NO_CODE
-                                   || inset_code == it->lyxCode())
-                                       it->dispatch(cur, fr);
+                                   || inset_code == it->lyxCode()) {
+                                       LCursor tmpcur = cur;
+                                       tmpcur.pushLeft(*it);
+                                       it->dispatch(tmpcur, fr);
+                               }
                        }
                        update = true;
                        break;