mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
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
This commit is contained in:
parent
4052facca6
commit
d7a2ae0bf3
@ -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
|
// 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
|
// 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.
|
// 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_);
|
loadPreview(docit_);
|
||||||
graphics::PreviewImage const * pimage = preview_->getPreviewImage(buffer());
|
graphics::PreviewImage const * pimage = preview_->getPreviewImage(buffer());
|
||||||
if (pimage) {
|
if (pimage) {
|
||||||
|
Loading…
Reference in New Issue
Block a user