dropping volta onto measure rest ending with a barline will incorrectly apply to next measure
on current nighlty OS: Arch Linux, Arch.: x86_64, MuseScore version (64-bit): 3.2.0.22748, revision: 0bfbac8
If I start with:
And then drop a volta with my mouse onto the 3-measure rest, then it incorrectly gets applied to subsequent measure (and also adds an undesired line break):
Comments
Note that this doesn't happen when double-clicking on a volta in the palette to apply. The bug only happens when dragging and dropping a volta from the palette with the mouse.
And i've discovered an important distinction: the bug only happens when you drop onto the actual black line of the multi-measure rest. The bug does not happen when you drop above the measure. So it seems to be a matter about which element the volta gets applied to: the line representing the mmrest, or the actual measurebase object.
In reply to And i've discovered an… by ericfontainejazz
Actually to clarify, it seems to be caused by your mouse's relative x-position in the measure you're dropping into. In the middle or towards the right half of the measure, and the volta drops to the next measure. It doesn't seem to be caused by elements in the measure.
It should be noted that my PR #291261: Make volta mouse drops apply only to first staff by default, unless user holds control to drop to a specific staff basically avoid the problem described here, since the volas are effectively dropped to the underlying measurebase element, but can't be dropped to the measure rest element itself.
In reply to It should be noted that my… by ericfontainejazz
So I'm discarding that PR. However, upon furhter inspection, I've discovered that what I've described in this forum post here is actually a bug. It also happens when you drop a volta just to the right of a whole rest element. So somehow in the drop destination calculation, it is mistakenly concluding the destination is the next measure.
Anyway, I'm trying a new solution to my other issue, which seems to better address the problem...standby.
In reply to So I'm discarding that PR. … by ericfontainejazz
I do have a new PR (https://github.com/musescore/MuseScore/pull/5167) which does also fix the problem described in this forum post.
Indeed this problem is present in both 3.1.0 release AND today's new 3.2.0 release.
For the record, an official issue report is make: #291431: Incorrect drop anchor displayed while dragging a Volta
And it sounds like a PR is imminent.