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) {