13
0

Don't select regions with an internal tool.

This commit is contained in:
David Robillard 2015-01-07 20:04:39 -05:00
parent 3a47d99f5f
commit e705e93376

View File

@ -540,7 +540,6 @@ StreamView::set_selected_regionviews (RegionSelection& regions)
}
}
/** Get selectable things within a given range.
* @param start Start time in session frames.
* @param end End time in session frames.
@ -548,10 +547,13 @@ StreamView::set_selected_regionviews (RegionSelection& regions)
* @param bot Bottom y range, in trackview coordinates (ie 0 is the top of the track view)
* @param result Filled in with selectable things.
*/
void
StreamView::get_selectables (framepos_t start, framepos_t end, double top, double bottom, list<Selectable*>& results)
{
if (_trackview.editor().internal_editing()) {
return; // Don't select regions with an internal tool
}
layer_t min_layer = 0;
layer_t max_layer = 0;