]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/controllers/ControlCommand.C
fix crash due to invalidated iterator
[lyx.git] / src / frontends / controllers / ControlCommand.C
index 9086ac4cabf229f44edf0e17147b9303f610438c..0fa8df22f8f6c62e0e8c3ab2cb899d2d1428ecb0 100644 (file)
@@ -49,7 +49,7 @@ void ControlCommand::dispatchParams()
 
        string const lfun = InsetCommandMailer::params2string(lfun_name_,
                                                              params_);
-       kernel().dispatch(FuncRequest(LFUN_INSET_APPLY, lfun));
+       kernel().dispatch(FuncRequest(getLfun(), lfun));
 }
 
 } // namespace frontend