Fixed a typo in the palette gap calculation code.

This commit is contained in:
Benjamin Berg 2007-08-10 23:39:12 +02:00
parent 04ae920ad5
commit c571993811

View File

@ -56,7 +56,7 @@ def _calculate_gap(a, b):
if gap: if gap:
if gap_side == gtk.POS_BOTTOM or gap_side == gtk.POS_TOP: 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, gap_size = max(0, min(a.width,
(b.x + b.width) - a.x) - gap_start) (b.x + b.width) - a.x) - gap_start)
elif gap_side == gtk.POS_RIGHT or gap_side == gtk.POS_LEFT: elif gap_side == gtk.POS_RIGHT or gap_side == gtk.POS_LEFT: