1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-09-17 16:50:26 +02:00

Bug2078: crash append-recording to minimized track...

... bug was introduced at commit 1a59ba6
This commit is contained in:
Paul Licameli 2019-03-18 10:33:01 -04:00
parent d261ea2558
commit 12952019b2

View File

@ -139,7 +139,7 @@ void Track::SetOwner
int Track::GetMinimizedHeight() const
{
auto height = TrackInfo::MinimumTrackHeight();
auto channels = TrackList::Channels(this);
auto channels = TrackList::Channels(this->SubstituteOriginalTrack().get());
auto nChannels = channels.size();
auto begin = channels.begin();
auto index = std::distance(begin, std::find(begin, channels.end(), this));