]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathDecoration.cpp
We only support gcc >= 4.9.
[lyx.git] / src / mathed / InsetMathDecoration.cpp
index 8bd004736fea80e57d148a771e4aeddb82f19679..cc4ba162796b8adaf48782f7bc9ec5cb4986749a 100644 (file)
@@ -122,8 +122,8 @@ void InsetMathDecoration::metrics(MetricsInfo & mi, Dimension & dim) const
        cell(0).metrics(mi, dim);
 
        int const l1 = mi.base.bv->zoomedPixels(1);
-       int const l2 = 2 * l1;
-       int const l3 = 3 * l1;
+       int const l2 = mathed_char_width(mi.base.font, 'x') - l1;
+       int const l3 = l2;
 
        dh_  = l2; //mathed_char_height(LM_TC_VAR, mi, 'I', ascent_, descent_);
        dw_  = l3; //mathed_char_width(LM_TC_VAR, mi, 'x');