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:
parent
2cd6dd2013
commit
163c3d1430
@ -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 );
|
||||
|
Loading…
x
Reference in New Issue
Block a user