From: Richard Heck Date: Fri, 1 Apr 2011 20:32:33 +0000 (+0000) Subject: Don't try to create a math preview image if we're just previewing. X-Git-Tag: 2.0.0~292 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=d7a2ae0bf3d9613c3ed4c07f5ab238d372904646;p=features.git Don't try to create a math preview image if we're just previewing. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38191 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/mathed/InsetMathHull.cpp b/src/mathed/InsetMathHull.cpp index 0b8b8a9e3b..ab198f23f3 100644 --- a/src/mathed/InsetMathHull.cpp +++ b/src/mathed/InsetMathHull.cpp @@ -2145,7 +2145,7 @@ docstring InsetMathHull::xhtml(XHTMLStream & xs, OutputParams const & op) const // but what follows is equivalent, since we'll enter only if either (a) we // tried and failed with MathML or HTML or (b) didn't try yet at all but // aren't doing LaTeX, in which case we are doing Images. - if (!success && mathtype != BufferParams::LaTeX) { + if (!success && mathtype != BufferParams::LaTeX && !op.dryrun) { loadPreview(docit_); graphics::PreviewImage const * pimage = preview_->getPreviewImage(buffer()); if (pimage) {