summaryrefslogtreecommitdiff
path: root/gtk2_ardour/automation_line.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2015-03-26 13:22:57 -0400
committerDavid Robillard <d@drobilla.net>2015-03-26 13:22:57 -0400
commit5c11e43f083ca6a184000ff61274a99ddf5f57c4 (patch)
tree376437a11a3681611c0d0cf1310736d16e937e30 /gtk2_ardour/automation_line.h
parent3b38d7d8a614f73f61bbed65356ba6c158d54970 (diff)
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.
Diffstat (limited to 'gtk2_ardour/automation_line.h')
-rw-r--r--gtk2_ardour/automation_line.h4
1 files changed, 2 insertions, 2 deletions
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<ContiguousControlPoints> CCP;
std::vector<CCP> contiguous_points;
- void sync_model_with_view_point (ControlPoint&);
- void sync_model_with_view_points (std::list<ControlPoint*>);
+ bool sync_model_with_view_point (ControlPoint&);
+ bool sync_model_with_view_points (std::list<ControlPoint*>);
void start_drag_common (double, float);
void reset_callback (const Evoral::ControlList&);