]> git.lyx.org Git - features.git/blobdiff - src/Text3.cpp
InsetCommandParams() now takes an InsetCode rather than a string.
[features.git] / src / Text3.cpp
index 726b65b8a955a7a262d3abeadb63f377315c692d..a6a6820ba57b0be8c25a830e92b93c8ab3a0c98b 100644 (file)
@@ -1060,7 +1060,7 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd)
        }
 
        case LFUN_HYPERLINK_INSERT: {
-               InsetCommandParams p("href");
+               InsetCommandParams p(HYPERLINK_CODE);
                docstring content;
                if (cur.selection()) {
                        content = cur.selectionAsString(false);
@@ -1079,7 +1079,7 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd)
        }
 
        case LFUN_LABEL_INSERT: {
-               InsetCommandParams p("label");
+               InsetCommandParams p(LABEL_CODE);
                // Try to generate a valid label
                p["name"] = (cmd.argument().empty()) ?
                        cur.getPossibleLabel() :