y1 -= track_container[track_i].height()/2;
float y2 = track_container[track_i+1].y();
y2 += track_container[track_i+1].height()/2;
-
- Segment s(prev_x, y1, *path_i, y2, prev_rc);
+
+ bool rcFlag = (prev_rc or *rc_i) and !(prev_rc and *rc_i);
+ Segment s(prev_x, y1, *path_i, y2, rcFlag);
s.path_ids.insert(pathid);
path_segments[track_i][p] = s;
} else {
glColor3f(1.0, 0.8, 0.8);
}
} else {
- // hack for demo, hide the reverse compliment color bug
if (selected_paths.size() == 0 or selected.size() > 0) {
- glColor3f(1.0, 0.0, 0.0);
+ glColor3f(0.0, 0.0, 1.0);
} else {
- glColor3f(1.0, 0.8, 0.8);
+ glColor3f(0.8, 0.8, 1.0);
}
/*
if (selected_paths.size() == 0 or selected.size() > 0) {
if (full_match)
aligned_path.push_back(x_end);
- if (aligned_path.size() > 0) {
+ if (aligned_path.size() == a_path.size()) {
result.push_back(aligned_path);
reversed.push_back(rc_list);
}