when displaying region selecting, compare regions not regionviews
This worked before because nothing happened to AutomationRegionViews when an AudioRegionView or MIDIRegionView was selected, and so testing based on the regionview worked (the potential RV could be the actual RV). But when displaying region selection (in any way) on other TimeAxisViews, the correct test is whether the RegionView shows the same region as the selected region(view).
This commit is contained in:
parent
ed48758fb6
commit
78037a532c
@ -565,7 +565,7 @@ StreamView::set_selected_regionviews (RegionSelection& regions)
|
|||||||
/* Linear search: probably as good as anything else */
|
/* Linear search: probably as good as anything else */
|
||||||
|
|
||||||
for (RegionSelection::iterator ii = regions.begin(); ii != regions.end(); ++ii) {
|
for (RegionSelection::iterator ii = regions.begin(); ii != regions.end(); ++ii) {
|
||||||
if (*i == *ii) {
|
if ((*i)->region() == (*ii)->region()) {
|
||||||
selected = true;
|
selected = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user