commit 0cf394dd79337b14adb2930a617c2027e0d6f2d8
Author: Tommaso Cucinotta <[email protected]>
Date:   Thu May 4 07:49:07 2017 +0200

    skip graphics conversion when runparams.dryrun is true
---
 src/insets/InsetGraphics.cpp |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/insets/InsetGraphics.cpp b/src/insets/InsetGraphics.cpp
index 04ed735..16a482f 100644
--- a/src/insets/InsetGraphics.cpp
+++ b/src/insets/InsetGraphics.cpp
@@ -947,7 +947,9 @@ string InsetGraphics::prepareHTMLFile(OutputParams const & 
runparams) const
 
 docstring InsetGraphics::xhtml(XHTMLStream & xs, OutputParams const & op) const
 {
-       string const output_file = prepareHTMLFile(op);
+       string const output_file;
+       if (!op.dryrun)
+               prepareHTMLFile(op);
 
        if (output_file.empty()) {
                LYXERR0("InsetGraphics::xhtml: Unable to prepare file `" 

Reply via email to