1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-07-03 14:13:11 +02:00

Fix for bug 600, 'Labelled Regions > Copy incorrect if point labels exist'

This commit is contained in:
martynshaw99 2012-12-08 20:18:25 +00:00
parent 2cd6dd2013
commit 163c3d1430

View File

@ -4278,6 +4278,10 @@ void AudacityProject::EditClipboardByLabel( WaveTrack::EditDestFunction action )
delete dest;
}
}
else // nothing copied but there is a 'region', so the 'region' must be a 'point label' so offset
if (i < (int)regions.GetCount() - 1)
if( merged )
merged->Offset(regions.Item(i+1)->start - regions.Item(i)->end);
}
if( merged )
msClipboard->Add( merged );