]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetHyperlink.cpp
The last commit was, uhh, not what I intended.
[lyx.git] / src / insets / InsetHyperlink.cpp
index 9b75a9e0a3c9e3c2c02403351ae6a5dfd748dda1..42c6240a032b572096facf9c7fdb82c4816b3a46 100644 (file)
@@ -86,9 +86,11 @@ int InsetHyperlink::latex(odocstream & os, OutputParams const & runparams) const
                }
 
                // add "http://" when the type is web (type = empty)
-               // and no "://" is given
+               // and no "://" or "run:" is given
                docstring type = getParam("type");
-               if (url.find(from_ascii("://")) == string::npos && type == "")
+               if (url.find(from_ascii("://")) == string::npos
+                       && url.find(from_ascii("run:")) == string::npos
+                       && type.empty())
                        url = from_ascii("http://") + url;
 
        } // end if (!url.empty())