From e7d7e75c0a5344517c84fa93b114c241e7462dcf Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Fri, 12 Jul 2002 11:09:01 +0000 Subject: [PATCH] revert accidential change git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4617 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/formula.C | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/mathed/formula.C b/src/mathed/formula.C index 0718df31fe..50bd5db958 100644 --- a/src/mathed/formula.C +++ b/src/mathed/formula.C @@ -214,10 +214,6 @@ void InsetFormula::read(Buffer const *, LyXLex & lex) void InsetFormula::draw(BufferView * bv, LyXFont const & font, int y, float & xx, bool) const { - // This initiates the loading of the preview, so should come - // before the metrics are computed. - bool const use_preview = preview_->usePreview(); - int const x = int(xx); int const w = width(bv, font); int const d = descent(bv, font); @@ -226,9 +222,9 @@ void InsetFormula::draw(BufferView * bv, LyXFont const & font, MathPainterInfo pi(bv->painter()); - if (use_preview) { + if (preview_->usePreview()) { pi.pain.image(x + 1, y - a + 1, w - 2, h - 2, - *(preview_->pimage_->image(*this, *bv))); + *(preview_->pimage_->image())); } else { //pi.base.style = display() ? LM_ST_DISPLAY : LM_ST_TEXT; pi.base.style = LM_ST_TEXT; @@ -530,7 +526,7 @@ bool InsetFormula::PreviewImpl::usePreview() const if (!pimage_) return false; - return pimage_->image(parent_, *view); + return pimage_->image(); } -- 2.39.2