]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathSpace.cpp
Fix bugs #6078 and #9364
[lyx.git] / src / mathed / InsetMathSpace.cpp
index 2a3b6f45cb477657a4e988da12b4991e14d0be46..c84bc771d82251124497a0c325a7e35abc1d4cfe 100644 (file)
@@ -123,9 +123,7 @@ void InsetMathSpace::metrics(MetricsInfo & mi, Dimension & dim) const
        dim.asc = 4;
        dim.des = 0;
        if (space_info[space_].custom)
-               dim.wid = abs(length_.inPixels(
-                               mi.base.textwidth,
-                               mathed_char_width(mi.base.font, 'M')));
+               dim.wid = abs(length_.inPixels(mi.base));
        else
                dim.wid = space_info[space_].width;
 }