]> git.tdb.fi Git - r2c2.git/commit
Use path coercion in track iterators
authorMikko Rasa <tdb@tdb.fi>
Thu, 10 Apr 2014 19:04:03 +0000 (22:04 +0300)
committerMikko Rasa <tdb@tdb.fi>
Thu, 10 Apr 2014 19:29:10 +0000 (22:29 +0300)
commit02453a447bad0ecc2a71e00b9578c9afaee0eadb
tree15f62e05d6caf6ba34c150ee8edf4c92e59e409b
parent30c14e235f19442753e5eeeb8a86cbc22960afb1
Use path coercion in track iterators

This enforces common traversal rules in all places.  It also fixes a bug
in TrackOffsetIter where moving to a turnout from an endpoint not on the
selected path would potentially cause an out-of-range iterator to be
created.
source/libr2c2/trackiter.cpp
source/libr2c2/trackoffsetiter.cpp