From a60385ba51d914e3bb42eaebe1f11b10a37367b9 Mon Sep 17 00:00:00 2001 From: Doug Fales Date: Sun, 3 Dec 2006 06:59:58 +0000 Subject: [PATCH] Fixing an exception in contains_time?. --- lib/gpx/segment.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/gpx/segment.rb b/lib/gpx/segment.rb index 6b895d6..43dbc45 100644 --- a/lib/gpx/segment.rb +++ b/lib/gpx/segment.rb @@ -87,7 +87,7 @@ module GPX # Returns true if the given time is within this Segment. 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 # Finds the closest point in time to the passed-in time argument. Useful