]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetfoot.C
Enable convertDefault.sh to run even if its executable bit is not set.
[lyx.git] / src / insets / insetfoot.C
index 9dd6fe202effff6baa60da3329abe4f2cdfb3439..cc047e2a9ba47912eab93372b4441aa760fcd22d 100644 (file)
@@ -58,13 +58,11 @@ string const InsetFoot::editMessage() const
 }
 
 
-int InsetFoot::latex(Buffer const * buf, ostream & os,
+int InsetFoot::latex(Buffer const & buf, ostream & os,
                     LatexRunParams const & runparams_in) const
 {
        LatexRunParams runparams = runparams_in;
-       if (buf) {
-               runparams.moving_arg |= ownerPar(*buf, this).layout()->intitle;
-       }
+       runparams.moving_arg |= ownerPar(buf, this).layout()->intitle;
 
        os << "%\n\\footnote{";
 
@@ -75,7 +73,7 @@ int InsetFoot::latex(Buffer const * buf, ostream & os,
 }
 
 
-int InsetFoot::docbook(Buffer const * buf, ostream & os, bool mixcont) const
+int InsetFoot::docbook(Buffer const & buf, ostream & os, bool mixcont) const
 {
        os << "<footnote>";
        int const i = inset.docbook(buf, os, mixcont);