]> git.lyx.org Git - lyx.git/blobdiff - src/Paragraph.cpp
Remove undisclosed imports (from xxx import *)
[lyx.git] / src / Paragraph.cpp
index a63017db328bc0c549c6f8a938719ffcb60de211..369d03ee836c238f6834e30601ec6e2e7be5dfc6 100644 (file)
@@ -1247,7 +1247,7 @@ void Paragraph::Private::latexSpecialChar(otexstream & os,
        // Both a layout tag and a dedicated inset seem too much effort for this.
        string const hr_url_escape_chars = "\\#%";
        if (contains(hr_url_escape_chars, c) && runparams.use_hyperref && il.latexname() == "url"
-           && il.required().find("url") != il.required().end()) {
+           && il.requiresFeature("url")) {
                os << "\\";
                os.put(c);
                return;