Prevent the PreviewLoader from orphaning children

This commit is contained in:
Juergen Spitzmueller 2012-10-05 18:28:38 +02:00
parent ce649ca9fd
commit e6afdf1b2b

View File

@ -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'