AutomationLine::drag_motion () returns any clamped fractions correctly.

This commit is contained in:
nick_m 2015-10-28 03:14:10 +11:00
parent fc8b03eef5
commit bf9e752b4d
1 changed files with 3 additions and 3 deletions

View File

@ -729,13 +729,13 @@ AutomationLine::drag_motion (double const x, float fraction, bool ignore_x, bool
line->set_steps (line_points, is_stepped());
}
}
double const result_frac = _last_drag_fraction + dy;
_drag_distance += dx;
_drag_x += dx;
_last_drag_fraction = fraction;
_last_drag_fraction = result_frac;
did_push = with_push;
return pair<double, float> (_drag_x + dx, fraction);
return pair<double, float> (_drag_x + dx, result_frac);
}
/** Should be called to indicate the end of a drag */