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
@ -677,10 +677,14 @@ Editor::canvas_line_event (GdkEvent *event, ArdourCanvas::Item* item, Automation
|
|||||||
AudioRegionGainLine* gl;
|
AudioRegionGainLine* gl;
|
||||||
if ((gl = dynamic_cast<AudioRegionGainLine*> (al)) != 0) {
|
if ((gl = dynamic_cast<AudioRegionGainLine*> (al)) != 0) {
|
||||||
type = GainLineItem;
|
type = GainLineItem;
|
||||||
clicked_regionview = &gl->region_view ();
|
if (event->type == GDK_BUTTON_PRESS) {
|
||||||
|
clicked_regionview = &gl->region_view ();
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
type = AutomationLineItem;
|
type = AutomationLineItem;
|
||||||
clicked_regionview = 0;
|
if (event->type == GDK_BUTTON_PRESS) {
|
||||||
|
clicked_regionview = 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
clicked_control_point = 0;
|
clicked_control_point = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user