Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check spanners when assessing emptiness
Port of musescore#8430, part 2: Previously, a staff's emptiness was calculated based on its note and annotation content. Since this is evaluated before the system was laid out, the system did not have pointers to its SpannerSegments. This commit adds a way to include whether a staff has any spanners (particularly pedal markings and hanging slurs) in assessing emptiness, creating more consistent/expected hiding behavior in HideMode::AUTO. Plus port of musescore#8527: This commit tweaks the changes from commit 54ebee4 (which checks for spanners when assessing staff emptiness) and ignores spanners that are "system" spanners (such as voltas or system text). This prevents a false-positive unhiding in the case of such system spanners. Also, it prevents another false positive that occurred hen a spanner started on the first tick of the next system. Plus fixing a regression with hairpins, resulting in the next system's staves to become unhidden
- Loading branch information