Ottava end anchor position is shifted right for single notes

• Oct 18, 2014 - 07:17
S4 - Minor

Open the attached score created from scratch with MuseScore 1e68b44 on Xubuntu 14.10.

The first measure contains ottava lines applied to single notes. However, it looks like they're applied to two notes because the end anchor position is shifted right:


For comparison, the second measure shows end anchors positioned properly when the ottava lines apply to two notes:


Attachment Size
ottava.mscz 1.76 KB
ottava-1.png 4.15 KB
ottava-2.png 4.77 KB


This happens only for notes that are very close together. Although the code specifically looks at the distance to the next note when calculating the line length, it later on throws that calculation away and enforces a minimum length of 3sp. I can't see any good reason for this, and obviously, it causes problems here. I had disabled that minimum length calculation for pedal lines for similar reasons recently but left it alone for other line types. I think I will just remove that minimum for all line types.