From: Juergen Spitzmueller Date: Sat, 6 Oct 2012 07:31:56 +0000 (+0200) Subject: Restore buffer parenthood if we exit already after the preamble X-Git-Tag: 2.0.5~51 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=fcfa044614db07b74ea3dd2f50e3799d0643d295;p=features.git Restore buffer parenthood if we exit already after the preamble --- diff --git a/src/Buffer.cpp b/src/Buffer.cpp index bb5943a0c3..6fc8741d54 100644 --- a/src/Buffer.cpp +++ b/src/Buffer.cpp @@ -1560,8 +1560,12 @@ void Buffer::writeLaTeXSource(otexstream & os, runparams.use_japanese = features.isRequired("japanese"); - if (!output_body) + if (!output_body) { + // Restore the parenthood if needed + if (!runparams.is_child) + d->ignore_parent = false; return; + } // make the body. os << "\\begin{document}\n";