]> git.lyx.org Git - lyx.git/blobdiff - src/insets/inseturl.C
Enable the external inset to handle unknown templates gracefully.
[lyx.git] / src / insets / inseturl.C
index 0b1aa1e038f8dbcdc4efa5b6d12478773f3fe5b4..16eaf04797d984fbd105cf369083590f0ec0a681 100644 (file)
 using std::ostream;
 
 
-InsetUrl::InsetUrl(InsetCommandParams const & p, bool)
+InsetUrl::InsetUrl(InsetCommandParams const & p)
                : InsetCommand(p)
 {}
 
 
+// InsetUrl::InsetUrl(InsetCommandParams const & p, bool)
+//             : InsetCommand(p, false)
+// {}
+
+
 InsetUrl::~InsetUrl()
 {
        InsetCommandMailer("url", *this).hideDialog();
@@ -76,7 +81,7 @@ int InsetUrl::latex(Buffer const *, ostream & os,
 {
        if (!getOptions().empty())
                os << getOptions() + ' ';
-       if (runparams.fragile)
+       if (runparams.moving_arg)
                os << "\\protect";
        os << "\\url{" << getContents() << '}';
        return 0;