mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
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:
parent
5fb56932b5
commit
47c864967f
@ -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.
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user