Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar
diff options
context:
space:
mode:
Diffstat (limited to 'sugar')
-rw-r--r--sugar/graphics/palette.py2
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: