1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-03 09:09:47 +02:00

Bug1310: Expanding cutline in one stereo channel with no cutline opposite...

... should leave the undo history in a correct state.
This commit is contained in:
Paul Licameli 2016-01-23 20:14:49 -05:00
parent 4d2f4bbd69
commit 11f308c72a

View File

@ -6613,9 +6613,20 @@ bool TrackPanel::HandleTrackLocationMouseEvent(WaveTrack * track, wxRect &rect,
if (track->ExpandCutLine(mCapturedTrackLocation.pos, &cutlineStart, &cutlineEnd))
{
WaveTrack* linked = (WaveTrack*)mTracks->GetLink(track);
if (linked &&
!linked->ExpandCutLine(mCapturedTrackLocation.pos))
return false;
if (linked) {
// Expand the cutline in the opposite channel if it is present.
// PRL: Do NOT report that the event is not handled if the other
// channel doesn't also have a cutline to expand at the same time.
// Just ignore the return. Bug1310.
/* bool success = */
linked->ExpandCutLine(mCapturedTrackLocation.pos);
/*
if (!success)
return false;
*/
}
mViewInfo->selectedRegion.setTimes(cutlineStart, cutlineEnd);
DisplaySelection();