diff options
-rw-r--r-- | gtk2_ardour/automation_line.cc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/gtk2_ardour/automation_line.cc b/gtk2_ardour/automation_line.cc index 18777def10..116a3e63ba 100644 --- a/gtk2_ardour/automation_line.cc +++ b/gtk2_ardour/automation_line.cc @@ -824,7 +824,11 @@ AutomationLine::point_drag (ControlPoint& cp, nframes_t x, float fraction, bool drag_x = x; modify_view_point (cp, x, fraction, with_push); - line->property_points() = line_points; + + if (line_points.size() > 1) { + line->property_points() = line_points; + } + drags++; did_push = with_push; } @@ -848,6 +852,9 @@ AutomationLine::line_drag (uint32_t i1, uint32_t i2, float fraction, bool with_p modify_view_point (*cp, trackview.editor.unit_to_frame (cp->get_x()), ((_height - cp->get_y()) /_height) + ydelta, with_push); } + if (line_points.size() > 1) { + line->property_points() = line_points; + } drags++; } |