Ottava 8vb displays as 8va on save/reload

• Dec 13, 2018 - 18:06
Reported version
3.0
Priority
P0 - Critical
Type
Functional
Frequency
Once
Severity
S3 - Major
Reproducibility
Always
Status
closed
Regression
Yes
Workaround
No
Project
Tags

1) add an ottava 8vb to a score (should appear below staff, hook pointing up)
2) save
3) reload

Result: it displays as 8va (above staff, hook pointing down)

Playback is still correct, and the type shows correctly as 8vb in the Inspector. But placement says it is above, and it is indeed placed above.


Comments

This is very similar to #279622: All ottavas in the palettes are 8va, which was fixed with 436f9fb. The problem also arises when copying and pasting an ottava that is not 8va. The easiest way to fix this would be to add a call to styleChanged() at the end of Ottava::read(). This should allow us to remove spanner->styleChanged(); from Palette::applyPaletteElement(). But the line cell->element->styleChanged(); in Palette::read() is currently what fixes #276504: Palettes: need to double-check a few icons.