]> git.openstreetmap.org Git - rails.git/blobdiff - lib/gpx.rb
Update Potlatch 2 to r24481 build
[rails.git] / lib / gpx.rb
index 76f0af19a83110c7a2d50ef3073683bf9dc61d66..2041ce7c010068a07dec5ec0d03fbf0b9077ceff 100644 (file)
@@ -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)