From f3d170c15a89913120f38b061ba47af301953fad Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Wed, 15 Aug 2001 07:02:16 +0000 Subject: [PATCH] more cosmetics git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2515 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/math_deliminset.C | 19 ++++--------------- src/mathed/support.C | 6 ++++++ 2 files changed, 10 insertions(+), 15 deletions(-) diff --git a/src/mathed/math_deliminset.C b/src/mathed/math_deliminset.C index 1f46ecf5b5..c61c98b7f6 100644 --- a/src/mathed/math_deliminset.C +++ b/src/mathed/math_deliminset.C @@ -76,20 +76,9 @@ void MathDelimInset::draw(Painter & pain, int x, int y) const xo(x); yo(y); - int w = dw(); + int const w = dw(); + int const b = y - ascent_ - 2; xcell(0).draw(pain, x + w + 2, y); - - if (latexName(left_) == ".") { - pain.line(x + 2, yo() - ascent_, x + 2, yo() + descent_, - LColor::mathcursor, Painter::line_onoffdash); - } else - mathed_draw_deco(pain, x, y - ascent_ - 2, w, height() + 4, left_); - - x += width(); - - if (latexName(right_) == ".") { - pain.line(x + 2, yo() - ascent_, x + 2, yo() + descent_, - LColor::mathcursor, Painter::line_onoffdash); - } else - mathed_draw_deco(pain, x - dw(), y - ascent_ - 2, w, height() + 4, right_); + mathed_draw_deco(pain, x, b, w, height() + 4, left_); + mathed_draw_deco(pain, x + width() - w, b, w, height() + 4, right_); } diff --git a/src/mathed/support.C b/src/mathed/support.C index 3e2ca3b04e..a1b6440b45 100644 --- a/src/mathed/support.C +++ b/src/mathed/support.C @@ -573,6 +573,12 @@ void mathed_draw_deco(Painter & pain, int x, int y, int w, int h, int i = 0; string name = l->name; int code = (name.size() > 1) ? l->id : name[0]; + + if (name == ".") { + pain.line(x + w/2, y, x + w/2, y + h, + LColor::mathcursor, Painter::line_onoffdash); + return; + } deco_struct const * mds = search_deco(code); if (!mds) { -- 2.39.2