mirror of
https://github.com/cookiengineer/audacity
synced 2026-02-08 04:32:00 +01:00
Fix for bug 600, 'Labelled Regions > Copy incorrect if point labels exist'
This commit is contained in:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user