X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/d9e070e06956801aba2378c1b79b4d9f13ae12ee..bd8713f42b4a5196cf89e8270c57322742ba1f5e:/lib/gpx.rb 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)