]> git.lyx.org Git - lyx.git/blobdiff - src/Text3.cpp
Remove hardcoded values
[lyx.git] / src / Text3.cpp
index cc0a96f5707057f1d4381042f5c97344ae78ad7d..3e6fdf0e14e62634173830b242372aa160a48a51 100644 (file)
@@ -1775,13 +1775,9 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd)
        }
 
        case LFUN_HREF_INSERT: {
-               // FIXME If we're actually given an argument, shouldn't
-               // we use it, whether or not we have a selection?
                docstring content = cmd.argument();
-               if (cur.selection()) {
+               if (content.empty() && cur.selection())
                        content = cur.selectionAsString(false);
-                       cutSelection(cur, true, false);
-               }
 
                InsetCommandParams p(HYPERLINK_CODE);
                if (!content.empty()){