mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-13 20:09:59 +00:00
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:
parent
0f18dddbd6
commit
f0dad9cf92
@ -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];
|
||||
|
Loading…
x
Reference in New Issue
Block a user