From e6afdf1b2b1f707a69ac5b2ddb9056443b0a89b4 Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Fri, 5 Oct 2012 18:28:38 +0200 Subject: [PATCH] Prevent the PreviewLoader from orphaning children --- src/graphics/PreviewLoader.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/graphics/PreviewLoader.cpp b/src/graphics/PreviewLoader.cpp index 6185681f53..433082b14e 100644 --- a/src/graphics/PreviewLoader.cpp +++ b/src/graphics/PreviewLoader.cpp @@ -716,6 +716,8 @@ 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'