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:
Uwe Stöhr 2008-08-29 22:44:48 +00:00
parent aaf8176da8
commit ac3f391b46

View 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 == "")
url = from_ascii("http://") + url;
} // end if (!url.empty())