mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-27 06:19:36 +00:00
InsetHyperlink.cpp: fix a bug I introduced in r26218
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26262 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
aaf8176da8
commit
ac3f391b46
@ -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 == "")
|
||||
url = from_ascii("http://") + url;
|
||||
|
||||
} // end if (!url.empty())
|
||||
|
Loading…
Reference in New Issue
Block a user