13
0

automation drawing: don't draw staircases when there are no staircases

This commit is contained in:
Paul Davis 2023-07-09 22:14:38 -06:00
parent c584bfd374
commit 7f653de3e2

View File

@ -7331,8 +7331,10 @@ AutomationDrawDrag::motion (GdkEvent* ev, bool first_move)
} }
if (add_point) { if (add_point) {
dragging_line->add_point (ArdourCanvas::Duple (x, y)); if (drawn_points.empty() || (pos != drawn_points.back().when)) {
drawn_points.push_back (AutomationTimeAxisView::DrawnPoint (pos, y)); dragging_line->add_point (ArdourCanvas::Duple (x, y));
drawn_points.push_back (AutomationTimeAxisView::DrawnPoint (pos, y));
}
edge_x = x; edge_x = x;
} }
} }