Allow InsetPreview in no math preview mode.

Patch from Ronen Abravanel
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg161966.html

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35456 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Pavel Sanda 2010-09-19 22:33:55 +00:00
parent 65962da47b
commit f2c388a519

View File

@ -78,7 +78,8 @@ void InsetPreview::preparePreview(DocIterator const & pos) const
bool InsetPreview::previewState(BufferView * bv) const
{
if (!editing(bv) && RenderPreview::status() == LyXRC::PREVIEW_ON) {
if (!editing(bv) && (RenderPreview::status() == LyXRC::PREVIEW_ON ||
RenderPreview::status() == LyXRC::PREVIEW_NO_MATH)) {
graphics::PreviewImage const * pimage =
preview_->getPreviewImage(bv->buffer());
return pimage && pimage->image();