From 40ae2cdc35386d9ccebd133ba849ebc9f003cb22 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Sun, 1 Mar 2015 11:09:43 -0800 Subject: [PATCH] Fix snapping audio markers when dragging inactive line markers with ctrl We do need to check if the inactive markers are in the active set when ctrl-dragging, as otherwise there'll always be a marker 0 pixels away to snap to. Fortunately when ctrl-dragging all of the the markers involved are by definition very close together, so it would be very difficult to have enough markers to check for this to be a performance issue. Closes #1823. --- src/audio_timing_dialogue.cpp | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/src/audio_timing_dialogue.cpp b/src/audio_timing_dialogue.cpp index c211e8e92..7762525f2 100644 --- a/src/audio_timing_dialogue.cpp +++ b/src/audio_timing_dialogue.cpp @@ -845,6 +845,9 @@ int AudioTimingControllerDialogue::SnapMarkers(int snap_range, std::vector