From: André Pönitz Date: Thu, 14 Feb 2002 18:21:28 +0000 (+0000) Subject: pure cosmetics X-Git-Tag: 1.6.10~19852 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=a5322b93c69b20e513498063972b092fec745ef3;p=features.git pure cosmetics git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3543 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/mathed/math_deliminset.C b/src/mathed/math_deliminset.C index 952318be26..b4cd2bc507 100644 --- a/src/mathed/math_deliminset.C +++ b/src/mathed/math_deliminset.C @@ -40,8 +40,8 @@ void MathDelimInset::normalize(NormalStream & os) const int MathDelimInset::dw() const { int w = height() / 5; - if (w > 12) - w = 12; + if (w > 8) + w = 8; if (w < 4) w = 4; return w; @@ -58,7 +58,7 @@ void MathDelimInset::metrics(MathMetricsInfo const & mi) const int d0 = std::max(xcell(0).descent(), d) + h0; ascent_ = std::max(a0, d0) + h0; descent_ = std::max(a0, d0) - h0; - width_ = xcell(0).width() + 2 * dw() + 4; + width_ = xcell(0).width() + 2 * dw() + 8; } @@ -66,9 +66,9 @@ void MathDelimInset::draw(Painter & pain, int x, int y) const { int const w = dw(); int const b = y - ascent_; - xcell(0).draw(pain, x + w + 2, y); - mathed_draw_deco(pain, x + 1, b, w, height(), left_); - mathed_draw_deco(pain, x + width() - w - 1, b, w, height(), right_); + xcell(0).draw(pain, x + w + 4, y); + mathed_draw_deco(pain, x + 4, b, w, height(), left_); + mathed_draw_deco(pain, x + width() - w - 4, b, w, height(), right_); }