Mercurial > hg > tony
diff src/MainWindow.cpp @ 342:6f545a46746b
fixed deleteSelectionInclusive to not delete adjacent notes
author | matthiasm |
---|---|
date | Mon, 16 Jun 2014 11:44:14 +0100 |
parents | 05449a49cbb4 |
children | 80f2cd8a30f7 f3a9e4abec1b |
line wrap: on
line diff
--- a/src/MainWindow.cpp Mon Jun 16 09:28:12 2014 +0100 +++ b/src/MainWindow.cpp Mon Jun 16 11:44:14 2014 +0100 @@ -1215,7 +1215,7 @@ MultiSelection::SelectionList selections = m_viewManager->getSelections(); if (!selections.empty()) { Selection sel = *selections.begin(); - isAtSelectionBoundary = (frame == sel.getStartFrame()) || (frame == sel.getEndFrame()+1); + isAtSelectionBoundary = (frame == sel.getStartFrame()) || (frame == sel.getEndFrame()); } if (!doSelect || !isAtSelectionBoundary) { m_selectionAnchor = frame; @@ -1257,9 +1257,9 @@ if (doSelect) { Selection sel; if (frame > m_selectionAnchor) { - sel = Selection(m_selectionAnchor, frame-1); + sel = Selection(m_selectionAnchor, frame); } else { - sel = Selection(frame, m_selectionAnchor-1); + sel = Selection(frame, m_selectionAnchor); } m_viewManager->setSelection(sel); }