fix super/subscript size calculation

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2327 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2001-07-24 17:18:54 +00:00
parent 10f9dcb2ca
commit fea1e7dff4
2 changed files with 3 additions and 1 deletions

View File

@ -13,6 +13,8 @@
* xarray.C: less crude MathXArray::x2pos for preciser cursor positioning
using the mouse
* math_updowninset.C: fix drawing glitches
2001-07-22 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
* formula.C (insetAllowed): allow insertion of label

View File

@ -161,7 +161,7 @@ void MathUpDownInset::Metrics(MathStyles st, int asc, int des)
// of this MathScriptInset
width_ = std::max(xcell(0).width(), xcell(1).width());
ascent_ = up() ? xcell(0).height() + asc : 0;
descent_ = down() ? xcell(1).height() : 0;
descent_ = down() ? xcell(1).height() + des : 0;
dy0_ = - asc - xcell(0).descent();
dy1_ = des + xcell(1).ascent();
}