]> git.lyx.org Git - features.git/commitdiff
skip graphics conversion when runparams.dryrun is true
authorTommaso Cucinotta <tommaso@lyx.org>
Thu, 4 May 2017 05:49:07 +0000 (07:49 +0200)
committerTommaso Cucinotta <tommaso@lyx.org>
Fri, 5 May 2017 06:25:13 +0000 (08:25 +0200)
src/insets/InsetGraphics.cpp

index 04ed735f6898529fd9d48d7878fd6f3da9ec1ec4..16a482f10cc598f3c4a2926e35ca8bd2d557319b 100644 (file)
@@ -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 `"