]> 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 fd272a4b6011e77e6c08e025ad573b369e6ab759..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();
@@ -72,12 +77,11 @@ string const InsetUrl::getScreenLabel(Buffer const *) const
 
 
 int InsetUrl::latex(Buffer const *, ostream & os,
-                   LatexRunParams const & runparams,
-                   bool /*free_spc*/) const
+                   LatexRunParams const & runparams) const
 {
        if (!getOptions().empty())
                os << getOptions() + ' ';
-       if (runparams.fragile)
+       if (runparams.moving_arg)
                os << "\\protect";
        os << "\\url{" << getContents() << '}';
        return 0;