prevent steps in automation lines from vanishing
git-svn-id: svn://localhost/ardour2/trunk@1107 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
600f625dfe
commit
c00f5d4401
@ -747,10 +747,9 @@ AutomationLine::determine_visible_control_points (ALPoints& points)
|
|||||||
this_ry = (uint32_t) rint (ty);
|
this_ry = (uint32_t) rint (ty);
|
||||||
|
|
||||||
if (view_index && pi != npoints && /* not the first, not the last */
|
if (view_index && pi != npoints && /* not the first, not the last */
|
||||||
|
(((this_rx == prev_rx) && (this_ry == prev_ry)) || /* same point */
|
||||||
/* same point or too close to the last one horizontally */
|
(((this_rx - prev_rx) < (box_size + 2)) && /* too close horizontally */
|
||||||
|
((abs ((int)(this_ry - prev_ry)) < (box_size + 2)))))) { /* too close vertically */
|
||||||
(((this_rx == prev_rx) && (this_ry == prev_ry)) || ((this_rx - prev_rx) < (box_size + 2)))) {
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user