From fea1e7dff430f72131c49736d5fb2b8a637fda2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Tue, 24 Jul 2001 17:18:54 +0000 Subject: [PATCH] fix super/subscript size calculation git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2327 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/ChangeLog | 2 ++ src/mathed/math_updowninset.C | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mathed/ChangeLog b/src/mathed/ChangeLog index 4df2d54075..97c0c78b62 100644 --- a/src/mathed/ChangeLog +++ b/src/mathed/ChangeLog @@ -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 * formula.C (insetAllowed): allow insertion of label diff --git a/src/mathed/math_updowninset.C b/src/mathed/math_updowninset.C index 7c55479afa..77c2117e4c 100644 --- a/src/mathed/math_updowninset.C +++ b/src/mathed/math_updowninset.C @@ -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(); }