Voltas collide with elements above the staff if top staff is hidden (due to being empty)

• Feb 17, 2021 - 12:59
Reported version
3.0
Type
Functional
Frequency
Few
Severity
S4 - Minor
Reproducibility
Always
Status
active
Regression
No
Workaround
Yes
Project

In a score with 'Hide empty staves' being enabled and a volta and chord symbols on the top visible staff, these collide.

Woraround is to use Ctrl while adding the volta, effectivly adding it to that staff only. Downside is that the 'system' volta needs to get deleted to avoid #315248: Voltas duplicated if first instrument is invisible. or (maybe better) be made invisible to also avoid issue with (other) parts.

Seems to be happening in 3.6.2 and 3.5.2, but not in 3.3.4, might have been in 3.4 already, but I don't have that to test


Comments

Title Voltas collide with Chord symbols if top staff is hidden (due to being empty) Voltas collide with elements above the staff if top staff is hidden (due to being empty)

Not just chord symbols, but anything above the staff - notes on ledger lines, other text, etc. And yet other elements avoid each other just fine.
Suggesting the problem isn't with the way the skyline is being built, just in how it is being checked with respect to the volta.

And actually, that's easy to verify. Try manually moving the measure rest in one of the hidden empty measures far above the staff (do this before hiding obviously). When hide empty staves is enabled, you'll see the volta tries to avoid that hidden rest and appears equally far above the top visible staff, even if that top visible staff contains no elements above the staff.

Presumably we aren't managing the staff index correctly so we are trying to avoid the wrong skyline. Curious we get it right for system lines. Maybe the same code used for them should be applied to voltas too.

Regression Yes No

Actually, it's there since 3.0, I don't see any version where this ever worked. Attached is my test file, it fails in 3.4.2, 3.2.3, and 3.0.

As for workaround, I'd recommend a manual adjustment over adding with Ctrl personally.

Attachment Size
volta-autoplace-hide.mscz 7.99 KB

The attached score shows a related issue (not sure if it's been covered above). Select the volta in M12 and move it downwards to rest above the main staff. It collides with the invisible tab staff and forces it away from its associated staff line.

Attachment Size
volta_issue_2.mscz 13.75 KB