]> git.lyx.org Git - features.git/blobdiff - src/mathed/math_matrixinset.C
some pixel "corrections"
[features.git] / src / mathed / math_matrixinset.C
index d0f082e8f3da908780b3c7505ec0ea773f098b0e..f03b92feb5efe867698e6d52b0232b5bd3ad76ad 100644 (file)
@@ -114,6 +114,13 @@ void MathMatrixInset::metrics(MathStyles) const
                if (l)
                        width_ += 30 + l;
        }
+
+       // make it at least as high as the current font
+       int asc = 0;
+       int des = 0;
+       math_font_max_dim(LM_TC_TEXTRM, LM_ST_TEXT, asc, des);
+       ascent_  = std::max(ascent_,  asc);
+       descent_ = std::max(descent_, des);
 }