Bugzilla – Bug 2558
Clip left/right commands can fail to move the cursor
Last modified: 2020-10-08 08:31:50 UTC
See steps to reproduce. This is a regression. Although the error is only one pixel, the time error could be significant when zoomed out. The problem is in these lines in DoClipMove(). interval contains the start and end of the clip BEFORE the move. auto &intervals = pShifter->MovingIntervals(); if ( !intervals.empty() ) { auto &interval = intervals[0]; if (newT0 < interval.Start()) newT0 = interval.Start(); if (newT0 > interval.End()) newT0 = interval.End(); double diff = selectedRegion.duration(); selectedRegion.setTimes(newT0, newT0 + diff); }
Fixed in: https://github.com/audacity/audacity/commit/cce2c7b8830a7bb651d225863b792d23f336323f
There was also an identical problem with notetracks (except there can be only one "clip"). The above fix, also fixes that problem.
(In reply to David Bailes from comment #1) Tested on W10 with Audacity 3.0.0 7186aaf the clip and the cursor now move.
(In reply to David Bailes from comment #1) Tested on macOS 10.15.6 with Audacity 3.0.0 7186aaf the clip and the cursor now move. So OK on Mac as well