From: Tom Hughes Date: Fri, 8 Oct 2010 14:25:10 +0000 (+0100) Subject: The read flag is a boolean X-Git-Tag: live~6865^2~6 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/59e86dc07a630063123173bfc24078a7a98fb2f9 The read flag is a boolean --- diff --git a/lib/gpx.rb b/lib/gpx.rb index 76f0af19a..2041ce7c0 100644 --- a/lib/gpx.rb +++ b/lib/gpx.rb @@ -23,7 +23,7 @@ module GPX point = nil - while reader.read > 0 + while reader.read if reader.node_type == XML::Reader::TYPE_ELEMENT if reader.name == "trkpt" point = TrkPt.new(@tracksegs, reader["lat"].to_f, reader["lon"].to_f)