The branch, master, has been updated. - Log -----------------------------------------------------------------
commit 63612ca99b4961c5997c788626da81553233ff9f Author: Juergen Spitzmueller <[email protected]> Date: Fri Oct 5 19:26:07 2012 +0200 Restore buffer parenthood if we exit already after the preamble diff --git a/src/Buffer.cpp b/src/Buffer.cpp index 3561c45..8b052ad 100644 --- a/src/Buffer.cpp +++ b/src/Buffer.cpp @@ -1592,8 +1592,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"; diff --git a/src/graphics/PreviewLoader.cpp b/src/graphics/PreviewLoader.cpp index 433082b..6185681 100644 --- a/src/graphics/PreviewLoader.cpp +++ b/src/graphics/PreviewLoader.cpp @@ -716,8 +716,6 @@ void PreviewLoader::Impl::dumpPreamble(otexstream & os) const runparams.nice = true; runparams.moving_arg = true; runparams.free_spacing = true; - if (buffer_.parent()) - runparams.is_child = true; buffer_.writeLaTeXSource(os, buffer_.filePath(), runparams, Buffer::OnlyPreamble); // FIXME! This is a HACK! The proper fix is to control the 'true' ----------------------------------------------------------------------- Summary of changes: src/Buffer.cpp | 6 +++++- src/graphics/PreviewLoader.cpp | 2 -- 2 files changed, 5 insertions(+), 3 deletions(-) hooks/post-receive -- The LyX Source Repository
