From c5719938118f58d770bc1588d1584d8b6e98862e Mon Sep 17 00:00:00 2001 From: Benjamin Berg Date: Fri, 10 Aug 2007 23:39:12 +0200 Subject: [PATCH] Fixed a typo in the palette gap calculation code. --- sugar/graphics/palette.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sugar/graphics/palette.py b/sugar/graphics/palette.py index bcc32110..c8d0d98c 100644 --- a/sugar/graphics/palette.py +++ b/sugar/graphics/palette.py @@ -56,7 +56,7 @@ def _calculate_gap(a, b): if gap: if gap_side == gtk.POS_BOTTOM or gap_side == gtk.POS_TOP: - gap_start = min(a.width, max(0, b.x - b.x)) + gap_start = min(a.width, max(0, b.x - a.x)) gap_size = max(0, min(a.width, (b.x + b.width) - a.x) - gap_start) elif gap_side == gtk.POS_RIGHT or gap_side == gtk.POS_LEFT: