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