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:
Tommaso Cucinotta 2013-08-24 13:06:05 +01:00
parent ec058c3872
commit 203dab97c3

View File

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