From ac3f391b46d25784f3129e24658b73c4bc15febf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Uwe=20St=C3=B6hr?= Date: Fri, 29 Aug 2008 22:44:48 +0000 Subject: [PATCH] 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 --- src/insets/InsetHyperlink.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/insets/InsetHyperlink.cpp b/src/insets/InsetHyperlink.cpp index 9b75a9e0a3..b60b2b1042 100644 --- a/src/insets/InsetHyperlink.cpp +++ b/src/insets/InsetHyperlink.cpp @@ -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())