summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2006-11-28 23:08:46 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2006-11-28 23:08:46 +0000
commitf9f755dca9005488af935ad460bdfff164c5de2b (patch)
tree06f7eb84a3b9feec5838556cecf6da564de53f67
parent991b9136bb5b8cd7981588195ed0566b0045054b (diff)
fixes for some stupid thinko-crash bugs with automation
git-svn-id: svn://localhost/ardour2/trunk@1168 d708f5d6-7413-0410-9779-e7cbd77b26cf
-rw-r--r--gtk2_ardour/automation_line.cc9
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++;
}