]> git.lyx.org Git - lyx.git/blobdiff - src/factory.C
Bug fix in branches (was earlier fixed wrongly)
[lyx.git] / src / factory.C
index adce6473a6df36d8d8323d54f47c6a7167c67d2c..4eabc25c46bce2c5260f3b9d53bae1954f777b94 100644 (file)
@@ -67,7 +67,7 @@ InsetOld * createInset(FuncRequest const & cmd)
 
        switch (cmd.action) {
        case LFUN_HFILL:
-               return new InsetHFill();
+               return new InsetHFill;
 
        case LFUN_INSET_MINIPAGE:
                return new InsetMinipage(params);
@@ -370,7 +370,7 @@ InsetOld * readInset(LyXLex & lex, Buffer const & buf)
                                || tmptok == "Greyedout") {
                        inset = new InsetNote(buf.params(), tmptok);
                } else if (tmptok == "Branch") {
-                       inset = new InsetBranch(buf.params(), tmptok);
+                       inset = new InsetBranch(buf.params(), string());
                } else if (tmptok == "Include") {
                        InsetCommandParams p("Include");
                        inset = new InsetInclude(p);