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:
parent
ee4cd41eac
commit
eae6a70c6e
@ -190,6 +190,13 @@ void Track::SetMinimized(bool isMinimized)
|
|||||||
mList->ResizedEvent(mNode);
|
mList->ResizedEvent(mNode);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Track::SetLinked(bool l)
|
||||||
|
{
|
||||||
|
mLinked = l;
|
||||||
|
mList->RecalcPositions(mNode);
|
||||||
|
mList->ResizedEvent(mNode);
|
||||||
|
}
|
||||||
|
|
||||||
Track *Track::GetLink() const
|
Track *Track::GetLink() const
|
||||||
{
|
{
|
||||||
if (mNode) {
|
if (mNode) {
|
||||||
|
@ -140,7 +140,7 @@ class AUDACITY_DLL_API Track: public XMLTagHandler
|
|||||||
|
|
||||||
void SetSelected(bool s) { mSelected = s; }
|
void SetSelected(bool s) { mSelected = s; }
|
||||||
void SetMute (bool m) { mMute = m; }
|
void SetMute (bool m) { mMute = m; }
|
||||||
void SetLinked (bool l) { mLinked = l; }
|
void SetLinked (bool l);
|
||||||
void SetSolo (bool s) { mSolo = s; }
|
void SetSolo (bool s) { mSolo = s; }
|
||||||
|
|
||||||
int GetChannel() const { return mChannel; }
|
int GetChannel() const { return mChannel; }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user