X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/d9e070e06956801aba2378c1b79b4d9f13ae12ee..076755f50243a77b5828235fd9f20ec593600f8c:/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)