From 5c11e43f083ca6a184000ff61274a99ddf5f57c4 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 26 Mar 2015 13:22:57 -0400 Subject: Clam points to valid values on drag end. Fixes bug #6214. It would be better to do this while dragging, but this would require rewriting much of the drag code to keep track of a cumulative y delta since the current position of points would be "sticky" and prevent any movement at all, so this will have to do for now. --- gtk2_ardour/automation_line.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gtk2_ardour/automation_line.h') diff --git a/gtk2_ardour/automation_line.h b/gtk2_ardour/automation_line.h index 8554d487ee..edf5f521aa 100644 --- a/gtk2_ardour/automation_line.h +++ b/gtk2_ardour/automation_line.h @@ -202,8 +202,8 @@ private: typedef boost::shared_ptr CCP; std::vector contiguous_points; - void sync_model_with_view_point (ControlPoint&); - void sync_model_with_view_points (std::list); + bool sync_model_with_view_point (ControlPoint&); + bool sync_model_with_view_points (std::list); void start_drag_common (double, float); void reset_callback (const Evoral::ControlList&); -- cgit v1.2.3