]> git.lyx.org Git - features.git/blobdiff - src/insets/InsetSpace.cpp
Introduce FontMetrics::xHeight
[features.git] / src / insets / InsetSpace.cpp
index 5e9789c68c058c1b5aaa77da05c880acfc178746..fd8c261d2e649c621c2bc3a043bbf55a7bd6d426 100644 (file)
@@ -352,7 +352,7 @@ void InsetSpace::draw(PainterInfo & pi, int x, int y) const
        }
 
        int const w = dim.wid;
-       int const h = theFontMetrics(pi.base.font).ascent('x');
+       int const h = theFontMetrics(pi.base.font).xHeight();
        int xp[4], yp[4];
 
        xp[0] = x;