+2004-04-20 Angus Leeming <leeming@lyx.org>
+
+ * math_hullinset.C (addPreview): Add the preview only if
+ previewing of math insets is active.
+
2004-04-19 Angus Leeming <leeming@lyx.org>
* math_hullinset.C: changes due to changes to LyXRC::preview.
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);
+ }
}