]> git.lyx.org Git - lyx.git/blobdiff - src/factory.C
move some selection related stuff over to textcursor.C
[lyx.git] / src / factory.C
index c2316ef39edd72228c9814e21b9138c567a8c875..44eb7c70f17d51a852ec60a7d5351cd4d28c04f3 100644 (file)
@@ -199,15 +199,15 @@ 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") {
                        InsetGraphicsParams igp;
                        InsetGraphicsMailer::string2params(cmd.argument, igp);
                        InsetGraphics * inset = new InsetGraphics;
-                       string const fpath = cmd.view()->buffer()->filePath();
-                       inset->setParams(igp, fpath);
+                       inset->setParams(igp);
                        return inset;
 
                } else if (name == "include") {