]> git.lyx.org Git - features.git/commitdiff
Don't try to create a math preview image if we're just previewing.
authorRichard Heck <rgheck@comcast.net>
Fri, 1 Apr 2011 20:32:33 +0000 (20:32 +0000)
committerRichard Heck <rgheck@comcast.net>
Fri, 1 Apr 2011 20:32:33 +0000 (20:32 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38191 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/InsetMathHull.cpp

index 0b8b8a9e3b25e06d63ae169f95965fcb3ca12c1f..ab198f23f3d1826d51f2d465dc306783539bca4d 100644 (file)
@@ -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) {