# HG changeset patch # User Chris Cannam # Date 1427216742 0 # Node ID 3fb91da7d98d6b82a9be6f824239abe50790ab76 # Parent 271e729c818b0428afe09b8c26130f1c98a3bfc1 Don't snap selections to time ruler -- it's never useful diff -r 271e729c818b -r 3fb91da7d98d view/Pane.cpp --- a/view/Pane.cpp Tue Mar 24 16:40:55 2015 +0000 +++ b/view/Pane.cpp Tue Mar 24 17:05:42 2015 +0000 @@ -24,6 +24,7 @@ #include "widgets/TextAbbrev.h" #include "base/Preferences.h" #include "layer/WaveformLayer.h" +#include "layer/TimeRulerLayer.h" // GF: added so we can propagate the mouse move event to the note layer for context handling. #include "layer/LayerFactory.h" @@ -1367,7 +1368,8 @@ sv_frame_t snapFrame = mouseFrame; Layer *layer = getInteractionLayer(); - if (layer && !m_shiftPressed) { + if (layer && !m_shiftPressed && + !qobject_cast(layer)) { // don't snap to secs layer->snapToFeatureFrame(this, snapFrame, resolution, Layer::SnapLeft); } @@ -2083,7 +2085,8 @@ sv_frame_t snapFrameRight = mouseFrame; Layer *layer = getInteractionLayer(); - if (layer && !m_shiftPressed) { + if (layer && !m_shiftPressed && + !qobject_cast(layer)) { // don't snap to secs layer->snapToFeatureFrame(this, snapFrameLeft, resolution, Layer::SnapLeft); layer->snapToFeatureFrame(this, snapFrameRight,