mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
Now the regexp insets entered in Advanced F&R search/replace boxes do not preview anymore independently, unless embedded/nested within other math elements.
Fixing crash as described in #7805.
This commit is contained in:
parent
ec058c3872
commit
203dab97c3
@ -412,7 +412,9 @@ ColorCode InsetMathHull::standardColor() const
|
||||
|
||||
bool InsetMathHull::previewState(BufferView * bv) const
|
||||
{
|
||||
if (!editing(bv) && RenderPreview::status() == LyXRC::PREVIEW_ON) {
|
||||
if (!editing(bv) && RenderPreview::status() == LyXRC::PREVIEW_ON
|
||||
&& type_ != hullRegexp)
|
||||
{
|
||||
graphics::PreviewImage const * pimage =
|
||||
preview_->getPreviewImage(bv->buffer());
|
||||
return pimage && pimage->image();
|
||||
|
Loading…
Reference in New Issue
Block a user