The read flag is a boolean
This commit is contained in:
parent
b658f5d148
commit
59e86dc07a
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue