]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_updowninset.C
fix pullArg when pressing <Delete> at the end of an cell
[lyx.git] / src / mathed / math_updowninset.C
index 57c2ba952249e993d352188d5e2a50fe0135bc32..86aeb2b31773115195f7416388a0932cee37b488 100644 (file)
@@ -1,5 +1,3 @@
-#include <config.h>
-
 #ifdef __GNUG__
 #pragma implementation
 #endif
@@ -159,7 +157,7 @@ void MathUpDownInset::Metrics(MathStyles st, int asc, int des)
        // we assume that asc, des, wid are the metrics of the item in front
        // of this MathScriptInset
        width_   = std::max(xcell(0).width(), xcell(1).width());
-       ascent_  = up()   ? xcell(0).height() + 9 : 0;
+       ascent_  = up()   ? xcell(0).height() + asc : 0;
        descent_ = down() ? xcell(1).height() : 0;
        dy0_     = - asc  - xcell(0).descent();
        dy1_     =   des + xcell(1).ascent();