This commit is contained in:
Enrico Forestieri 2017-06-04 03:28:49 +02:00
parent 71f532db4b
commit 8ae652eb16

View File

@ -947,11 +947,9 @@ string InsetGraphics::prepareHTMLFile(OutputParams const & runparams) const
docstring InsetGraphics::xhtml(XHTMLStream & xs, OutputParams const & op) const
{
string const output_file;
if (!op.dryrun)
prepareHTMLFile(op);
string const output_file = op.dryrun ? string() : prepareHTMLFile(op);
if (output_file.empty()) {
if (output_file.empty() && !op.dryrun) {
LYXERR0("InsetGraphics::xhtml: Unable to prepare file `"
<< params().filename << "' for output. File missing?");
string const attr = "src='" + params().filename.absFileName()