mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 16:46:35 +01:00
Fix erroneous placement of new MIDI automation points in
regions with non-zero start (#4176). git-svn-id: svn://localhost/ardour2/branches/3.0@9859 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
16db8b5972
commit
dc900af74c
1 changed files with 1 additions and 1 deletions
|
|
@ -119,7 +119,7 @@ AutomationRegionView::canvas_event (GdkEvent* ev)
|
||||||
y = max (y, 0.0);
|
y = max (y, 0.0);
|
||||||
y = min (y, _height - NAME_HIGHLIGHT_SIZE);
|
y = min (y, _height - NAME_HIGHLIGHT_SIZE);
|
||||||
|
|
||||||
add_automation_event (ev, trackview.editor().pixel_to_frame (x) - _region->position(), y);
|
add_automation_event (ev, trackview.editor().pixel_to_frame (x) - _region->position() + _region->start(), y);
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue