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:
Paul Davis 2023-06-28 13:38:27 -06:00
parent ed48758fb6
commit 78037a532c
1 changed files with 1 additions and 1 deletions

View File

@ -565,7 +565,7 @@ StreamView::set_selected_regionviews (RegionSelection& regions)
/* Linear search: probably as good as anything else */
for (RegionSelection::iterator ii = regions.begin(); ii != regions.end(); ++ii) {
if (*i == *ii) {
if ((*i)->region() == (*ii)->region()) {
selected = true;
break;
}