Skip to content

Commit

Permalink
Merge pull request #3256 from Jojo-Schmitz/select-by-voice
Browse files Browse the repository at this point in the history
Fix #239021: Enable all elements to be selectable by voice
  • Loading branch information
lasconic committed Aug 1, 2017
2 parents e582ba5 + 586fcc6 commit 87752dd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions libmscore/score.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2950,10 +2950,10 @@ void Score::collectMatch(void* data, Element* e)
if ((p->staffStart != -1)
&& ((p->staffStart > e->staffIdx()) || (p->staffEnd <= e->staffIdx())))
return;
if (e->isChord() || e->isRest() || e->isArticulation() || e->isAccidental() || e->isLyrics() || e->isBeam() || e->isHook() || e->isStem() || e->isSlurSegment() || e->isNoteDot() || e->isFingering() || e->isTuplet()) {
if (p->voice != -1 && p->voice != e->voice())
return;
}

if (p->voice != -1 && p->voice != e->voice())
return;

if (p->system) {
Element* ee = e;
do {
Expand Down

0 comments on commit 87752dd

Please sign in to comment.