From d85978b58f2466f62667ce44d3ba72ad17a9516d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Mon, 12 Mar 2007 23:42:35 +0000 Subject: [PATCH] fix #3295 git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17428 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/InsetMathRoot.C | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/mathed/InsetMathRoot.C b/src/mathed/InsetMathRoot.C index c6b60b69da..3700033f37 100644 --- a/src/mathed/InsetMathRoot.C +++ b/src/mathed/InsetMathRoot.C @@ -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); -- 2.39.5