]> git.lyx.org Git - features.git/commitdiff
pure cosmetics
authorAndré Pönitz <poenitz@gmx.net>
Thu, 14 Feb 2002 18:21:28 +0000 (18:21 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Thu, 14 Feb 2002 18:21:28 +0000 (18:21 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3543 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/math_deliminset.C

index 952318be26b88c02968ae65caf8dfc976bd73747..b4cd2bc507f2cb4e83024eccc9117beea261275a 100644 (file)
@@ -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_);
 }