Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
further improvements to accidental / ledger line avoidance
A recent improvement to this algorithm allowed accidentals to avoid ledger lines in a number of cases where it didn't before. However, it was a little overly aggressive and avoided ledger lines in a few case where it wasn't necessary. In particular, in cases where the accidental is actually further from the staff than thre last "left note" (note on the left side of a downsteam) and could potentially have been tucked in closer. This change detects that situation - where the bottom of an accidental above the staff is above the top of highest extended ledger line (above the staff; conversely for below the staff). In these cases, we do *not* add extra horizontal space. This fixes the slight regression a few of the vtests after the previous improvement - allowing the accidentals to move closer to the stem as they wetre before that recent change.
- Loading branch information