Browse Source

Cosmetic changes.

debian-sid
Tom Payne 14 years ago
parent
commit
36cda57f10
  1. 5
      igc2kmz/scale.py

5
igc2kmz/scale.py

@ -68,10 +68,7 @@ class Scale(object):
return n - 1
else:
result = int(round(n * self.normalize(value)))
if result > n - 1:
return n - 1
else:
return result
return n - 1 if result > n - 1 else result
def color(self, value):
"""Return the color for value."""

Loading…
Cancel
Save