X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FParagraph.cpp;h=150c28d6a9adafe53b8be2cdc7d224dbf3d297e9;hb=69036ced3765f40048d62be800c98af3ea2d1b4a;hp=75e0f343696ffe320ed5980744718a5561078af0;hpb=c952f9a7be7354ae2884cc6eb732fea53ee62341;p=lyx.git diff --git a/src/Paragraph.cpp b/src/Paragraph.cpp index 75e0f34369..150c28d6a9 100644 --- a/src/Paragraph.cpp +++ b/src/Paragraph.cpp @@ -1980,7 +1980,7 @@ int Paragraph::Private::endTeXParParams(BufferParams const & bparams, // This one spits out the text of the paragraph -bool Paragraph::latex(BufferParams const & bparams, +void Paragraph::latex(BufferParams const & bparams, Font const & outerfont, odocstream & os, TexRow & texrow, OutputParams const & runparams, @@ -1994,9 +1994,7 @@ bool Paragraph::latex(BufferParams const & bparams, bparams.documentClass().plainLayout() : *d->layout_; if (!force && style.inpreamble) - return false; - - bool return_value = false; + return; bool const allowcust = allowParagraphCustomization(); @@ -2256,7 +2254,6 @@ bool Paragraph::latex(BufferParams const & bparams, // Needed if there is an optional argument but no contents. if (body_pos > 0 && body_pos == size()) { os << "}]~"; - return_value = false; } if (allowcust && d->endTeXParParams(bparams, os, texrow, runparams) @@ -2267,7 +2264,6 @@ bool Paragraph::latex(BufferParams const & bparams, } LYXERR(Debug::LATEX, "Paragraph::latex... done " << this); - return return_value; }