X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FText3.cpp;h=3e6fdf0e14e62634173830b242372aa160a48a51;hb=2de30c62f8d671a8c8d4d52a6a7310e2c5ca84de;hp=cc0a96f5707057f1d4381042f5c97344ae78ad7d;hpb=c0000cc405063044fb4eca3f04ab35f69fe3dd74;p=lyx.git diff --git a/src/Text3.cpp b/src/Text3.cpp index cc0a96f570..3e6fdf0e14 100644 --- a/src/Text3.cpp +++ b/src/Text3.cpp @@ -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()){