The read flag is a boolean

This commit is contained in:
Tom Hughes 2010-10-08 15:25:10 +01:00
parent b658f5d148
commit 59e86dc07a

View 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)