computation for a path segment was wrong
authorDiane Trout <diane@caltech.edu>
Thu, 16 Mar 2006 01:03:35 +0000 (01:03 +0000)
committerDiane Trout <diane@caltech.edu>
Thu, 16 Mar 2006 01:03:35 +0000 (01:03 +0000)
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 -=)

alg/gltracks.cpp

index 7f11c5bb476b157a07de21beec05ec9914ed6033..fb7df0b8363860eb3f7ce1e57dc686976ccc4a61 100644 (file)
@@ -187,7 +187,7 @@ GlTracks::link(vector<int> path, vector<bool> rc, int length)
       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);