From 203dab97c36308b74ec43f3706ade4fc23f5c35b Mon Sep 17 00:00:00 2001 From: Tommaso Cucinotta Date: Sat, 24 Aug 2013 13:06:05 +0100 Subject: [PATCH] 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. --- src/mathed/InsetMathHull.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mathed/InsetMathHull.cpp b/src/mathed/InsetMathHull.cpp index d03eca9c53..0eb7241f4c 100644 --- a/src/mathed/InsetMathHull.cpp +++ b/src/mathed/InsetMathHull.cpp @@ -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();