1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-25 15:53:52 +02:00

Bug 1290 - "Split New" clips cannot be dragged back into the track they came from.

Fixed by giving some tolerance in how the dragged clip(s) are placed.
The tolerance is 1px, so it depends on the zoom.  Therefore if zoomed in your positioning is more precise.
This commit is contained in:
James Crook
2017-08-19 22:46:33 +01:00
parent 4d43d2273b
commit e984211cce
3 changed files with 40 additions and 7 deletions

View File

@@ -491,7 +491,7 @@ class AUDACITY_DLL_API WaveTrack final : public PlayableTrack {
// Before moving a clip into a track (or inserting a clip), use this
// function to see if the times are valid (i.e. don't overlap with
// existing clips).
bool CanInsertClip(WaveClip* clip, double slideBy=0.0);
bool CanInsertClip(WaveClip* clip, double &slideBy, double &tolerance);
// Remove the clip from the track and return a SMART pointer to it.
// You assume responsibility for its memory!