X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/fb5f6bb4a206d9a41fda40ac83e71fe425947a45..98f34e4534ba5ae9886fbcb13b6e88b2aaace96a:/lib/gpx.rb?ds=sidebyside 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)