13
0

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:
Robin Gareus 2016-05-25 02:46:57 +02:00
parent b487954722
commit cec449871e

View File

@ -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;