mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
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:
parent
65962da47b
commit
f2c388a519
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user