]> git.lyx.org Git - features.git/blobdiff - src/mathed/InsetMathHull.cpp
InsetCommandParams() now takes an InsetCode rather than a string.
[features.git] / src / mathed / InsetMathHull.cpp
index 3c19dc6c059139473fb74bba1eee618e0a84c6a5..d4ba42f721de36e4bf5e5e1eeb9cb999bde5eb46 100644 (file)
@@ -1095,7 +1095,7 @@ void InsetMathHull::doDispatch(Cursor & cur, FuncRequest & cmd)
                if (old_label.empty())
                        old_label = default_label;
 
-               InsetCommandParams p("label");
+               InsetCommandParams p(LABEL_CODE);
                p["name"] = cmd.argument().empty() ? old_label : cmd.argument();
                std::string const data = InsetCommandMailer::params2string("label", p);
 
@@ -1112,7 +1112,7 @@ void InsetMathHull::doDispatch(Cursor & cur, FuncRequest & cmd)
                //lyxerr << "arg: " << to_utf8(cmd.argument()) << endl;
                std::string const name = cmd.getArg(0);
                if (name == "label") {
-                       InsetCommandParams p("label");
+                       InsetCommandParams p(LABEL_CODE);
                        InsetCommandMailer::string2params(name, to_utf8(cmd.argument()), p);
                        docstring str = p["name"];
                        cur.recordUndoInset();