Mercurial > hg > tony
changeset 304:6045288159e9
much improved selection by note.
author | matthiasm |
---|---|
date | Thu, 12 Jun 2014 17:23:15 +0100 |
parents | 42b355b50e52 |
children | ecd430813eae |
files | src/MainWindow.cpp |
diffstat | 1 files changed, 7 insertions(+), 1 deletions(-) [+] |
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; }