mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-07 14:15:46 +01:00
when adding automation points from kbd, don't translate y coordinate
since we have no screen position, we've already call ControlList::eval() and that's the number we should be using for the new point.
This commit is contained in:
parent
289264b29d
commit
aa68198487
1 changed files with 3 additions and 1 deletions
|
|
@ -1768,12 +1768,14 @@ AutomationLine::add (std::shared_ptr<AutomationControl> control, GdkEvent* event
|
|||
|
||||
_editing_context.snap_to_with_modifier (when, event);
|
||||
|
||||
if (UIConfiguration::instance().get_new_automation_points_on_lane() || control->list()->size () == 0) {
|
||||
if (!from_kbd && (UIConfiguration::instance().get_new_automation_points_on_lane() || control->list()->size () == 0)) {
|
||||
if (control->list()->size () == 0) {
|
||||
y = control->get_value ();
|
||||
} else {
|
||||
y = control->list()->eval (when);
|
||||
}
|
||||
} else if (from_kbd) {
|
||||
/* relax, y is in model space already */
|
||||
} else {
|
||||
double x = 0;
|
||||
grab_item().canvas_to_item (x, y);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue