From f9f755dca9005488af935ad460bdfff164c5de2b Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 28 Nov 2006 23:08:46 +0000 Subject: [PATCH] fixes for some stupid thinko-crash bugs with automation git-svn-id: svn://localhost/ardour2/trunk@1168 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/automation_line.cc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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++; }