fix drawing glitch

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2236 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2001-07-13 12:37:49 +00:00
parent 0f18dddbd6
commit f0dad9cf92

View File

@ -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];