]> git.lyx.org Git - lyx.git/blobdiff - src/factory.C
last Friday's text*.C -> text_func shuffle
[lyx.git] / src / factory.C
index d6cbd418499dcff89a0812e3670573cddaf7be84..7d908149c619828a524157f478100f750d8020c7 100644 (file)
@@ -54,6 +54,8 @@
 
 #include <cstdio>
 
+using namespace lyx::support;
+
 using std::endl;
 
 Inset * createInset(FuncRequest const & cmd)
@@ -199,7 +201,8 @@ Inset * createInset(FuncRequest const & cmd)
                        InsetExternal::Params iep;
                        InsetExternalMailer::string2params(cmd.argument, iep);
                        InsetExternal * inset = new InsetExternal;
-                       inset->setFromParams(iep);
+                       string const fpath = cmd.view()->buffer()->filePath();
+                       inset->setParams(iep, fpath);
                        return inset;
 
                } else if (name == "graphics") {