From 0cf394dd79337b14adb2930a617c2027e0d6f2d8 Mon Sep 17 00:00:00 2001 From: Tommaso Cucinotta Date: Thu, 4 May 2017 07:49:07 +0200 Subject: [PATCH] skip graphics conversion when runparams.dryrun is true --- src/insets/InsetGraphics.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/insets/InsetGraphics.cpp b/src/insets/InsetGraphics.cpp index 04ed735f68..16a482f10c 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 `" -- 2.39.2