Selection dialog box can't select note ties by voice

• Nov 2, 2015 - 14:29
Priority
normal
Status
closed
Component
Code
Category
bug report
Project

MS 2.0.2 / Nightly d45cc19 / Win 7 / Win 10.

The select box cannot select note-ties by voice. This issue goes back to, at least, MS 2.0.2. Use the attached file:

Right-click on the note tie in bar 1, voice 2. Select "More …," then "Same voice." Then exit.
Expected result: Only ties in voice 2 should be selected.
Actual result: Ties in both voices 1 and 2 are selected!

Attachment Size
voice_selection_issue.mscz 18.37 KB

Comments

Category feature bug

on the other hand the coloring of ties is done as per their voice, so somewhere the voice is known. And apparently the color is determined be looking at the starting note, which IMHO should be enough to make the selection work on this too

Like almost all elements, a tie *does* have a voice, so the coloring is based on that. The only question is whether the voice of the tie is *relevant*. Potentially, there could be three different voices involved: the voice of the first note, the voice of the second note, and the voice of the tie itself. I don't know if there is any guarantee that the tie of the voice is always the same as the that of the first note. Probably makes sense to just use the voice of the tie, though, and if we then discover cases where the tie of the voice does *not* match that of the first note, we could look into if there is a good reason for that.

Well, at least simply adding "|| e->type() == Element::Type::SLUR || e->type() == Element::Type::TIE" to the code you mentioned doesn't do the trick :-(