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
This commit is contained in:
Angus Leeming 2004-04-20 08:16:22 +00:00
parent 5fb56932b5
commit 47c864967f
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,8 @@
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.

View File

@ -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);
}
}