]> git.lyx.org Git - features.git/commitdiff
InsetHyperlink: Fix replacement of empty name with target
authorJuergen Spitzmueller <spitz@lyx.org>
Wed, 8 Feb 2017 08:17:14 +0000 (09:17 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Wed, 8 Feb 2017 08:17:14 +0000 (09:17 +0100)
src/insets/InsetHyperlink.cpp

index 8405c48440b2ee57764f0ba9b53708d3be9252f1..e036574cd294dceccf2a196cf16ea33675bb1429 100644 (file)
@@ -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