From: Angus Leeming Date: Tue, 16 Jul 2002 18:04:57 +0000 (+0000) Subject: remove the extra pixels required to accommodate the mathed active frame X-Git-Tag: 1.6.10~18860 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=830ef843a682554b24b4766d0d020a451570f903;p=features.git remove the extra pixels required to accommodate the mathed active frame when in Preview mode. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4653 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/mathed/ChangeLog b/src/mathed/ChangeLog index c814dfc410..782dcb1dd1 100644 --- a/src/mathed/ChangeLog +++ b/src/mathed/ChangeLog @@ -1,3 +1,8 @@ +2002-07-16 Angus Leeming + + * formula.C (ascent, descent, draw): remove the extra pixels + required to accommodate the mathed active frame when in Preview mode. + 2002-07-12 Angus Leeming * formula.C: use the new smart loading capabilities of the image loader. diff --git a/src/mathed/formula.C b/src/mathed/formula.C index 67108d39be..ca2399cf22 100644 --- a/src/mathed/formula.C +++ b/src/mathed/formula.C @@ -227,7 +227,7 @@ void InsetFormula::draw(BufferView * bv, LyXFont const & font, MathPainterInfo pi(bv->painter()); if (use_preview) { - pi.pain.image(x + 1, y - a + 1, w - 2, h - 2, + pi.pain.image(x, y - a, w, h, *(preview_->pimage_->image(*this, *bv))); } else { //pi.base.style = display() ? LM_ST_DISPLAY : LM_ST_TEXT; @@ -442,14 +442,14 @@ bool InsetFormula::insetAllowed(Inset::Code code) const int InsetFormula::ascent(BufferView *, LyXFont const &) const { return preview_->usePreview() ? - 1 + preview_->pimage_->ascent() : 1 + par_->ascent(); + preview_->pimage_->ascent() : 1 + par_->ascent(); } int InsetFormula::descent(BufferView *, LyXFont const &) const { return preview_->usePreview() ? - 1 + preview_->pimage_->descent() : 1 + par_->descent(); + preview_->pimage_->descent() : 1 + par_->descent(); }