From: Juergen Spitzmueller Date: Wed, 8 Feb 2017 08:17:14 +0000 (+0100) Subject: InsetHyperlink: Fix replacement of empty name with target X-Git-Tag: 2.3.0alpha1~380 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=ff0d96c3719bc46b1f61a0e858a1dae039cc8f0c;p=lyx.git InsetHyperlink: Fix replacement of empty name with target --- diff --git a/src/insets/InsetHyperlink.cpp b/src/insets/InsetHyperlink.cpp index 8405c48440..e036574cd2 100644 --- a/src/insets/InsetHyperlink.cpp +++ b/src/insets/InsetHyperlink.cpp @@ -162,7 +162,7 @@ void InsetHyperlink::latex(otexstream & os, } // end if (!url.empty()) if (!name.empty()) { - name = params().prepareCommand(runparams, getParam("name"), + name = params().prepareCommand(runparams, name, ParamInfo::HANDLING_LATEXIFY); // replace the tilde by the \sim character as suggested in the // LaTeX FAQ for URLs