mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 14:54:56 +01:00
fix region gain via range tool
Moving the mouse over another region's gain line changed clicked_regionview. clicked_regionview is used along with range-time when initiating an AutomationRangeDrag.
This commit is contained in:
parent
b487954722
commit
cec449871e
1 changed files with 6 additions and 2 deletions
|
|
@ -677,10 +677,14 @@ Editor::canvas_line_event (GdkEvent *event, ArdourCanvas::Item* item, Automation
|
|||
AudioRegionGainLine* gl;
|
||||
if ((gl = dynamic_cast<AudioRegionGainLine*> (al)) != 0) {
|
||||
type = GainLineItem;
|
||||
clicked_regionview = &gl->region_view ();
|
||||
if (event->type == GDK_BUTTON_PRESS) {
|
||||
clicked_regionview = &gl->region_view ();
|
||||
}
|
||||
} else {
|
||||
type = AutomationLineItem;
|
||||
clicked_regionview = 0;
|
||||
if (event->type == GDK_BUTTON_PRESS) {
|
||||
clicked_regionview = 0;
|
||||
}
|
||||
}
|
||||
|
||||
clicked_control_point = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue