]> git.lyx.org Git - features.git/commitdiff
* src/insets/insetexternal.C
authorGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Sat, 10 Feb 2007 11:03:26 +0000 (11:03 +0000)
committerGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Sat, 10 Feb 2007 11:03:26 +0000 (11:03 +0000)
(InsetExternal::latex): Handle the dryrun flag correctly: Only
create the LaTeX output, do not do any file conversions.
(InsetExternal::plaintext): ditto
(InsetExternal::docbook): ditto

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17127 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/insetexternal.C

index 910d3d071a55a3d2230672a217d987144652de64..0882c84fe4f218cdae2bc91b7b3438738eb602fa 100644 (file)
@@ -688,7 +688,8 @@ int InsetExternal::latex(Buffer const & buf, odocstream & os,
        // run through the LaTeX compiler.
        // If we're running through the LaTeX compiler, we should write the
        // generated files in the bufer's temporary directory.
-       bool const external_in_tmpdir = !runparams.nice && !runparams.dryrun;
+       bool const external_in_tmpdir = !runparams.nice;
+       bool const dryrun = runparams.dryrun || runparams.inComment;
 
        // If the template has specified a PDFLaTeX output, then we try and
        // use that.
@@ -707,7 +708,7 @@ int InsetExternal::latex(Buffer const & buf, odocstream & os,
                                                        buf, os,
                                                        *(runparams.exportdata),
                                                        external_in_tmpdir,
-                                                       runparams.inComment);
+                                                       dryrun);
                 }
                 
        }
@@ -715,7 +716,7 @@ int InsetExternal::latex(Buffer const & buf, odocstream & os,
        return external::writeExternal(params_, "LaTeX", buf, os,
                                        *(runparams.exportdata),
                                        external_in_tmpdir,
-                                       runparams.inComment);
+                                       dryrun);
 }
 
 
@@ -724,7 +725,7 @@ int InsetExternal::plaintext(Buffer const & buf, odocstream & os,
 {
        return external::writeExternal(params_, "Ascii", buf, os,
                                       *(runparams.exportdata), false,
-                                      runparams.inComment);
+                                      runparams.dryrun || runparams.inComment);
 }
 
 
@@ -733,7 +734,7 @@ int InsetExternal::docbook(Buffer const & buf, odocstream & os,
 {
        return external::writeExternal(params_, "DocBook", buf, os,
                                       *(runparams.exportdata), false,
-                                      runparams.inComment);
+                                      runparams.dryrun || runparams.inComment);
 }