Mercurial > hg > tony
diff src/MainWindow.cpp @ 304:6045288159e9
much improved selection by note.
author | matthiasm |
---|---|
date | Thu, 12 Jun 2014 17:23:15 +0100 |
parents | 528d207fd661 |
children | 585c045129c9 |
line wrap: on
line diff
--- 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; }