]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/controllers/ControlSendto.C
fix crash due to invalidated iterator
[lyx.git] / src / frontends / controllers / ControlSendto.C
index fb35d3102ae9fb732c177ab40788196a6658d594..c58eb7dd45d02df829e640df2a43a4ca0a079e95 100644 (file)
@@ -11,6 +11,7 @@
 #include <config.h>
 
 #include "ControlSendto.h"
+
 #include "buffer.h"
 #include "converter.h"
 #include "format.h"
@@ -50,7 +51,7 @@ void ControlSendto::dispatchParams()
                return;
 
        string const data = format_->name() + " " + command_;
-       kernel().dispatch(FuncRequest(LFUN_EXPORT_CUSTOM, data));
+       kernel().dispatch(FuncRequest(getLfun(), data));
 }