fix underbrace drawing

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7177 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2003-06-17 06:34:49 +00:00
parent a0aa73cf1e
commit 9e50499320

View File

@ -97,7 +97,7 @@ void MathDecorationInset::draw(PainterInfo & pi, int x, int y) const
{
cell(0).draw(pi, x + 1, y);
if (wide())
mathed_draw_deco(pi, x + 1, y + dy_, pi.width, dh_, key_->name);
mathed_draw_deco(pi, x + 1, y + dy_, cell(0).width(), dh_, key_->name);
else
mathed_draw_deco(pi, x + 1 + (pi.width - dw_) / 2,
y + dy_, dw_, dh_, key_->name);