1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-01 16:19:43 +02:00

Bug 293 - Paste/insert does not affect included label tracks when Sync-Lock is off

This commit is contained in:
James Crook 2018-04-08 21:41:25 +01:00
parent 5fe3c1bdd0
commit 0909a4acfa

View File

@ -5412,13 +5412,10 @@ void AudacityProject::OnPaste(const CommandContext &WXUNUSED(context) )
else if (c->GetKind() == Track::Label &&
n->GetKind() == Track::Label)
{
// Per Bug 293, users expect labels to move on a paste into
// a label track.
((LabelTrack *)n)->Clear(t0, t1);
// To be (sort of) consistent with Clear behavior, we'll only shift
// them if sync-lock is on.
if (IsSyncLocked())
((LabelTrack *)n)->ShiftLabelsOnInsert(msClipT1 - msClipT0, t0);
((LabelTrack *)n)->ShiftLabelsOnInsert(msClipT1 - msClipT0, t0);
bPastedSomething |= ((LabelTrack *)n)->PasteOver(t0, c);
}
else