]> git.lyx.org Git - lyx.git/commitdiff
fix #3295
authorAndré Pönitz <poenitz@gmx.net>
Mon, 12 Mar 2007 23:42:35 +0000 (23:42 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Mon, 12 Mar 2007 23:42:35 +0000 (23:42 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17428 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/InsetMathRoot.C

index c6b60b69da6938efa2645196c6ad8b33df90091f..3700033f3729086cf5f0bfa482454ab227daff62 100644 (file)
@@ -42,7 +42,7 @@ bool InsetMathRoot::metrics(MetricsInfo & mi, Dimension & dim) const
 {
        InsetMathNest::metrics(mi);
        dim.asc = max(cell(0).ascent()  + 5, cell(1).ascent())  + 2;
-       dim.des = max(cell(1).descent() + 5, cell(0).descent()) + 2;
+       dim.des = max(cell(0).descent() - 5, cell(1).descent()) + 2;
        dim.wid = cell(0).width() + cell(1).width() + 10;
        metricsMarkers(dim);
        if (dim_ == dim)
@@ -67,7 +67,6 @@ void InsetMathRoot::draw(PainterInfo & pi, int x, int y) const
        xp[1] = x + w + 4;         yp[1] = y - a + 1;
        xp[2] = x + w;             yp[2] = y + d;
        xp[3] = x + w - 2;         yp[3] = y + (d - a)/2 + 2;
-       //xp[4] = x;                 yp[4] = y + (d - a)/2 + 2;
        xp[4] = x + w - 5;         yp[4] = y + (d - a)/2 + 4;
        pi.pain.lines(xp, yp, 5, LColor::math);
        drawMarkers(pi, x, y);