X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2Fmath_updowninset.C;h=7c55479afacf8cd94655f9b4a1559b9cb517796b;hb=10f9dcb2ca947e60351955894c5159bad32984b0;hp=86aeb2b31773115195f7416388a0932cee37b488;hpb=c1364850c09e7d5485b7e153e43bbfb2cfd82ee5;p=lyx.git diff --git a/src/mathed/math_updowninset.C b/src/mathed/math_updowninset.C index 86aeb2b317..7c55479afa 100644 --- a/src/mathed/math_updowninset.C +++ b/src/mathed/math_updowninset.C @@ -149,10 +149,13 @@ void MathUpDownInset::Write(std::ostream & os, bool fragile) const void MathUpDownInset::Metrics(MathStyles st, int asc, int des) { + size_ = st; + MathStyles tt = smallerStyleScript(st); + if (up()) - xcell(0).Metrics(st); + xcell(0).Metrics(tt); if (down()) - xcell(1).Metrics(st); + xcell(1).Metrics(tt); // we assume that asc, des, wid are the metrics of the item in front // of this MathScriptInset