]> git.lyx.org Git - features.git/commitdiff
fix super/subscript size calculation
authorAndré Pönitz <poenitz@gmx.net>
Tue, 24 Jul 2001 17:18:54 +0000 (17:18 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Tue, 24 Jul 2001 17:18:54 +0000 (17:18 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2327 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/ChangeLog
src/mathed/math_updowninset.C

index 4df2d5407579fd1d0b65e24daf8973aa10bab310..97c0c78b62e388ec328c5b386988184ecd490217 100644 (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
index 7c55479afacf8cd94655f9b4a1559b9cb517796b..77c2117e4cabc2c6e0bea75d266bfeb3322b4698 100644 (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();
 }