# HG changeset patch # User matthiasm # Date 1402590195 -3600 # Node ID 6045288159e942aa6d595a7954123e6d8ee25169 # Parent 42b355b50e52e60a91b163b6cbf667ea87bc4f55 much improved selection by note. diff -r 42b355b50e52 -r 6045288159e9 src/MainWindow.cpp --- a/src/MainWindow.cpp Thu Jun 12 15:03:21 2014 +0100 +++ b/src/MainWindow.cpp Thu Jun 12 17:23:15 2014 +0100 @@ -1126,7 +1126,13 @@ Pane *p = m_analyser->getPane(); - if (!doSelect) { + bool isAtSelectionBoundary = false; + MultiSelection::SelectionList selections = m_viewManager->getSelections(); + if (!selections.empty()) { + Selection sel = *selections.begin(); + isAtSelectionBoundary = (frame == sel.getStartFrame()) || (frame == sel.getEndFrame()); + } + if (!doSelect || !isAtSelectionBoundary) { m_selectionAnchor = frame; }