From: Tommaso Cucinotta Date: Thu, 4 May 2017 05:49:07 +0000 (+0200) Subject: skip graphics conversion when runparams.dryrun is true X-Git-Tag: 2.3.0beta1~476 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=0cf394dd;p=features.git skip graphics conversion when runparams.dryrun is true --- 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 `"