]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/MathSupport.cpp
When inserting math inset over selection, place cursor better
[lyx.git] / src / mathed / MathSupport.cpp
index ea8309545fac6041d52d6a709888feb4a81f1c3d..2cf4bd5f26ebc1f69244cc6e7cf5c96575fce8f2 100644 (file)
@@ -520,7 +520,7 @@ int mathed_font_em(FontInfo const & font)
 
 int mathed_font_x_height(FontInfo const & font)
 {
-       return theFontMetrics(font).ascent('x');
+       return theFontMetrics(font).xHeight();
 }
 
 /* The math units. Quoting TeX by Topic, p.205: