From: André Pönitz Date: Fri, 13 Jul 2001 12:37:49 +0000 (+0000) Subject: fix drawing glitch X-Git-Tag: 1.6.10~21086 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=f0dad9cf92372434ec81d6bd2a8d5345ad9ebe01;p=features.git fix drawing glitch git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2236 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/mathed/formula.C b/src/mathed/formula.C index 61f0f9a66a..00c040a9db 100644 --- a/src/mathed/formula.C +++ b/src/mathed/formula.C @@ -127,14 +127,13 @@ void InsetFormula::draw(BufferView * bv, LyXFont const &, MathInset::workwidth = bv->workWidth(); Painter & pain = bv->painter(); + Metrics(); int w = par()->width(); int h = par()->height(); int a = par()->ascent(); pain.fillRectangle(int(x), y - a, w, h, LColor::mathbg); if (mathcursor) { - Metrics(); - if (mathcursor->formula() == this) { if (mathcursor->Selection()) { int xp[10];