Merge pull request #4413 from jthistle/280137-part-measure-select

fix #280137: selecting measure in part doesn't play from measure
This commit is contained in:
anatoly-os 2018-12-18 17:19:08 +02:00 committed by GitHub
commit a7d8f102fc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3022,8 +3022,11 @@ void Score::selectRange(Element* e, int staffIdx)
_selection.setActiveTrack(activeTrack);
// doing this in note entry mode can clear selection
if (_selection.startSegment() && !noteEntryMode())
setPlayPos(_selection.startSegment()->tick());
if (_selection.startSegment() && !noteEntryMode()) {
int tick = _selection.startSegment()->tick();
if (masterScore()->playPos() != tick)
masterScore()->setPlayPos(tick);
}
_selection.updateSelectedElements();
}