From cfdd1f4b6154a582a596b2f81efee8efaf5fd1ae Mon Sep 17 00:00:00 2001 From: Angus Leeming Date: Fri, 10 Oct 2003 14:20:59 +0000 Subject: [PATCH] Don't try and generate the previews from draw. insetUnlock is already doing a fine job... git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7892 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/graphics/PreviewedInset.C | 1 + src/mathed/ChangeLog | 5 +++++ src/mathed/formula.C | 6 ------ 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/graphics/PreviewedInset.C b/src/graphics/PreviewedInset.C index 8056a1b82c..015cb5c1ab 100644 --- a/src/graphics/PreviewedInset.C +++ b/src/graphics/PreviewedInset.C @@ -59,6 +59,7 @@ void PreviewedInset::addPreview(graphics::PreviewLoader & ploader) return; snippet_ = support::trim(latexString(ploader.buffer())); + pimage_ = 0; if (snippet_.empty()) return; diff --git a/src/mathed/ChangeLog b/src/mathed/ChangeLog index 7daeff64dc..f14e2f8337 100644 --- a/src/mathed/ChangeLog +++ b/src/mathed/ChangeLog @@ -1,3 +1,8 @@ +2003-10-10 Angus Leeming + + * formula.C (draw): don't try and generate the previews from draw. + insetUnlock is already doing a fine job... + 2003-10-09 Angus Leeming * formula.C (metrics, draw): no longer need to pass a Buffer arg diff --git a/src/mathed/formula.C b/src/mathed/formula.C index 84ec914000..85617a78e3 100644 --- a/src/mathed/formula.C +++ b/src/mathed/formula.C @@ -200,12 +200,6 @@ void InsetFormula::draw(PainterInfo & pi, int x, int y) const bool const editing_inset = mathcursor && mathcursor->formula() == this; bool const use_preview = !editing_inset && preview_->previewReady(); - if (!editing_inset && bv) { - Buffer const * buffer_ptr = bv->buffer(); - if (buffer_ptr) - preview_->generatePreview(*buffer_ptr); - } - int const w = dim_.wid; int const d = dim_.des; int const a = dim_.asc; -- 2.39.2