From f0dad9cf92372434ec81d6bd2a8d5345ad9ebe01 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Fri, 13 Jul 2001 12:37:49 +0000 Subject: [PATCH] fix drawing glitch git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2236 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/formula.C | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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]; -- 2.39.2