From 47c864967faa265ea97de1c47181d1f692c990dc Mon Sep 17 00:00:00 2001 From: Angus Leeming Date: Tue, 20 Apr 2004 08:16:22 +0000 Subject: [PATCH] Generate math previews only if previewing of math insets is desired. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8679 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/ChangeLog | 5 +++++ src/mathed/math_hullinset.C | 6 ++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/mathed/ChangeLog b/src/mathed/ChangeLog index 8d28c978ec..c8b45f1d74 100644 --- a/src/mathed/ChangeLog +++ b/src/mathed/ChangeLog @@ -1,3 +1,8 @@ +2004-04-20 Angus Leeming + + * math_hullinset.C (addPreview): Add the preview only if + previewing of math insets is active. + 2004-04-19 Angus Leeming * math_hullinset.C: changes due to changes to LyXRC::preview. diff --git a/src/mathed/math_hullinset.C b/src/mathed/math_hullinset.C index 45ac4537fe..0a54cc8779 100644 --- a/src/mathed/math_hullinset.C +++ b/src/mathed/math_hullinset.C @@ -359,8 +359,10 @@ string const latex_string(MathHullInset const & inset) void MathHullInset::addPreview(lyx::graphics::PreviewLoader & ploader) const { - string const snippet = latex_string(*this); - preview_->addPreview(snippet, ploader); + if (RenderPreview::status() == LyXRC::PREVIEW_ON) { + string const snippet = latex_string(*this); + preview_->addPreview(snippet, ploader); + } } -- 2.39.2