X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2Fmath_undersetinset.C;h=8dd90e0e3e39e761db5e7d4e6343fd0f01fe99e2;hb=b447408de232872fef1537fca542abc23702d572;hp=659cdc6341801c6daac62c883b8ae86b02a458d5;hpb=75ba515b18282881fc351ebd4fffbee95e08a94e;p=lyx.git diff --git a/src/mathed/math_undersetinset.C b/src/mathed/math_undersetinset.C index 659cdc6341..8dd90e0e3e 100644 --- a/src/mathed/math_undersetinset.C +++ b/src/mathed/math_undersetinset.C @@ -41,7 +41,7 @@ void MathUndersetInset::metrics(MetricsInfo & mi, Dimension & dim) const void MathUndersetInset::draw(PainterInfo & pi, int x, int y) const { - int m = x + pi.width / 2; + int m = x + width() / 2; int yo = y + cell(1).descent() + cell(0).ascent() + 1; cell(1).draw(pi, m - cell(1).width() / 2, y); FracChanger dummy(pi.base);