]> git.lyx.org Git - features.git/commitdiff
Restore buffer parenthood if we exit already after the preamble
authorJuergen Spitzmueller <spitz@lyx.org>
Sat, 6 Oct 2012 07:31:56 +0000 (09:31 +0200)
committerJuergen Spitzmueller <spitz@lyx.org>
Sat, 6 Oct 2012 07:31:56 +0000 (09:31 +0200)
src/Buffer.cpp

index bb5943a0c33b37dcedb6548ef4cf330fb4110538..6fc8741d54b461473a0ffd9b3a7f4b7e5265d19a 100644 (file)
@@ -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";