mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +00:00
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:
parent
10f9dcb2ca
commit
fea1e7dff4
@ -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
|
||||
|
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user