]> git.lyx.org Git - lyx.git/blobdiff - src/factory.C
Revert, revert, revert. Sorry about that, y'all.
[lyx.git] / src / factory.C
index 00122f3a684d48c8a222a6aba8f17dd0fea5101f..18bbb04dc2c8d494653f85ef8f2cc5eee337caec 100644 (file)
@@ -191,11 +191,9 @@ InsetOld * createInset(FuncRequest const & cmd)
                        return new InsetBibitem(icp);
 
                } else if (name == "bibtex") {
-                       Buffer const & buffer = *cmd.view()->buffer();
-                       InsetBibtexParams ibp;
-                       InsetBibtexMailer::string2params(cmd.argument,
-                                                        buffer, ibp);
-                       return new InsetBibtex(ibp);
+                       InsetCommandParams icp;
+                       InsetCommandMailer::string2params(cmd.argument, icp);
+                       return new InsetBibtex(icp);
 
                } else if (name == "citation") {
                        InsetCommandParams icp;
@@ -322,6 +320,8 @@ InsetOld * readInset(LyXLex & lex, Buffer const & buf)
                } else if (cmdName == "bibitem") {
                        lex.printError("Wrong place for bibitem");
                        inset = new InsetBibitem(inscmd);
+               } else if (cmdName == "bibtex") {
+                       inset = new InsetBibtex(inscmd);
                } else if (cmdName == "index") {
                        inset = new InsetIndex(inscmd);
                } else if (cmdName == "include") {
@@ -355,8 +355,6 @@ InsetOld * readInset(LyXLex & lex, Buffer const & buf)
        } else {
                if (tmptok == "Quotes") {
                        inset = new InsetQuotes;
-               } else if (tmptok == "Bibtex") {
-                       inset = new InsetBibtex;
                } else if (tmptok == "External") {
                        inset = new InsetExternal;
                } else if (tmptok == "FormulaMacro") {