The second y axis for the path segment was wrong. (Too much cut and
paste coding). It should go to the top of a track, not the bottom
(+= not -=)
float y1 = track_container[track_i].y();
y1 -= track_container[track_i].height()/2;
float y2 = track_container[track_i+1].y();
- y2 -= track_container[track_i+1].height()/2;
+ y2 += track_container[track_i+1].height()/2;
Segment s(prev_x, y1, *path_i, y2, prev_rc);
s.path_ids.push_back(pathid);