From d7a2ae0bf3d9613c3ed4c07f5ab238d372904646 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Fri, 1 Apr 2011 20:32:33 +0000 Subject: [PATCH] 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 --- src/mathed/InsetMathHull.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.39.5