mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-21 12:55:57 +01:00
remove unneeded code in line_drag that was probably copy/pasted from control_point_drag
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@4618 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
3d2c6f5a60
commit
1df29ef6d7
1 changed files with 0 additions and 13 deletions
|
|
@ -3205,24 +3205,11 @@ Editor::line_drag_motion_callback (ArdourCanvas::Item* item, GdkEvent* event)
|
|||
|
||||
double cy = drag_info.grab_y + drag_info.cumulative_y_drag + dy;
|
||||
|
||||
// calculate zero crossing point. back off by .01 to stay on the
|
||||
// positive side of zero
|
||||
double zero_gain_y = (1.0 - ZERO_GAIN_FRACTION) * line->height() - .01;
|
||||
|
||||
// line->parent_group().i2w(_unused, zero_gain_y);
|
||||
|
||||
// make sure we hit zero when passing through
|
||||
if ((cy < zero_gain_y and (cy - dy) > zero_gain_y)
|
||||
or (cy > zero_gain_y and (cy - dy) < zero_gain_y)) {
|
||||
cy = zero_gain_y;
|
||||
}
|
||||
|
||||
drag_info.cumulative_y_drag = cy - drag_info.grab_y;
|
||||
|
||||
cy = max (0.0, cy);
|
||||
cy = min ((double) line->height(), cy);
|
||||
|
||||
|
||||
double fraction = 1.0 - (cy / line->height());
|
||||
|
||||
bool push;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue