]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_updowninset.C
make text in super/subscripts smaller than ordinary text
[lyx.git] / src / mathed / math_updowninset.C
index 86aeb2b31773115195f7416388a0932cee37b488..7c55479afacf8cd94655f9b4a1559b9cb517796b 100644 (file)
@@ -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