Fixing an exception in contains_time?.

master
Doug Fales 2006-12-03 06:59:58 +00:00
parent 931a10cd17
commit a60385ba51
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ module GPX
# Returns true if the given time is within this Segment. # Returns true if the given time is within this Segment.
def contains_time?(time) def contains_time?(time)
(time >= @earliest_point.time and time <= @latest_point.time) (time >= @earliest_point.time and time <= @latest_point.time) rescue false
end end
# Finds the closest point in time to the passed-in time argument. Useful # Finds the closest point in time to the passed-in time argument. Useful