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