summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2006-11-11 15:51:52 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2006-11-11 15:51:52 +0000
commitc00f5d440152aabddaf395edb0e92b62da573996 (patch)
tree875154a49c56c7bd8406e634264413450763c3cd
parent600f625dfee407a2139b719272617ae286fde0e5 (diff)
prevent steps in automation lines from vanishing
git-svn-id: svn://localhost/ardour2/trunk@1107 d708f5d6-7413-0410-9779-e7cbd77b26cf
-rw-r--r--gtk2_ardour/automation_line.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/gtk2_ardour/automation_line.cc b/gtk2_ardour/automation_line.cc
index 6002a69353..7fc0bc7926 100644
--- a/gtk2_ardour/automation_line.cc
+++ b/gtk2_ardour/automation_line.cc
@@ -747,10 +747,9 @@ AutomationLine::determine_visible_control_points (ALPoints& points)
this_ry = (uint32_t) rint (ty);
if (view_index && pi != npoints && /* not the first, not the last */
-
- /* same point or too close to the last one horizontally */
-
- (((this_rx == prev_rx) && (this_ry == prev_ry)) || ((this_rx - prev_rx) < (box_size + 2)))) {
+ (((this_rx == prev_rx) && (this_ry == prev_ry)) || /* same point */
+ (((this_rx - prev_rx) < (box_size + 2)) && /* too close horizontally */
+ ((abs ((int)(this_ry - prev_ry)) < (box_size + 2)))))) { /* too close vertically */
continue;
}