diff options
author | Benjamin Berg <benjamin@sipsolutions.net> | 2007-08-10 21:39:12 (GMT) |
---|---|---|
committer | Benjamin Berg <benjamin@sipsolutions.net> | 2007-08-10 21:39:12 (GMT) |
commit | c5719938118f58d770bc1588d1584d8b6e98862e (patch) | |
tree | 437b78c0aaa9b6216c2b60bbad015ff287592317 /sugar/graphics | |
parent | 04ae920ad5e217cf237e3200e16725644d12f314 (diff) |
Fixed a typo in the palette gap calculation code.
Diffstat (limited to 'sugar/graphics')
-rw-r--r-- | sugar/graphics/palette.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sugar/graphics/palette.py b/sugar/graphics/palette.py index bcc3211..c8d0d98 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: |