]> 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 b60b2b104236d4bab9ec417768ac7cd80fce08c5..42c6240a032b572096facf9c7fdb82c4816b3a46 100644 (file)
@@ -90,7 +90,7 @@ int InsetHyperlink::latex(odocstream & os, OutputParams const & runparams) const
                docstring type = getParam("type");
                if (url.find(from_ascii("://")) == string::npos
                        && url.find(from_ascii("run:")) == string::npos
-                       && type == "")
+                       && type.empty())
                        url = from_ascii("http://") + url;
 
        } // end if (!url.empty())