1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-08-16 08:34:10 +02:00

always resize a track when it linked/unlinked so that it's minimised size is honoured, and we don't get over-minimised tracks. splitting very-small-but-not-minimised tracks can still give these symptoms. Patch by Sven Giermann

This commit is contained in:
richardash1981 2013-03-10 16:31:07 +00:00
parent ee4cd41eac
commit eae6a70c6e
2 changed files with 8 additions and 1 deletions

View File

@ -190,6 +190,13 @@ void Track::SetMinimized(bool isMinimized)
mList->ResizedEvent(mNode);
}
void Track::SetLinked(bool l)
{
mLinked = l;
mList->RecalcPositions(mNode);
mList->ResizedEvent(mNode);
}
Track *Track::GetLink() const
{
if (mNode) {

View File

@ -140,7 +140,7 @@ class AUDACITY_DLL_API Track: public XMLTagHandler
void SetSelected(bool s) { mSelected = s; }
void SetMute (bool m) { mMute = m; }
void SetLinked (bool l) { mLinked = l; }
void SetLinked (bool l);
void SetSolo (bool s) { mSolo = s; }
int GetChannel() const { return mChannel; }