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:
@@ -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!
|
||||
|
||||
Reference in New Issue
Block a user