Skip to content

Commit

Permalink
Fixed length can be 0
Browse files Browse the repository at this point in the history
In the test there was a not too many.
  • Loading branch information
pvbouwel committed Apr 13, 2014
1 parent c0770eb commit 12c822d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gpxpy/gpx.py
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ def speed_between(self, track_point):
if not length:
length = self.distance_2d(track_point)

if not seconds or length is not None:
if not seconds or length is None:
return None

return length / float(seconds)
Expand Down

0 comments on commit 12c822d

Please sign in to comment.