Fix the base note automation fix (#6828)

Towards the end of the development for the fix of #6548 (via #6725) the upgrade code was refactored into its own class. While doing so it was forgotten to actually call the `upgrade` method on the `UpgradeExtendedNoteRange` instance. As a result almost all files should currently open in a wrong state with many instruments transposed. This commit fixes this.

Also explicitly check the assertion that BB tracks do not contain other BB tracks.
This commit is contained in:
Michael Gregorius
2023-08-27 18:21:38 +02:00
parent fc2f6a0b31
commit 4cb09e2b60
2 changed files with 3 additions and 0 deletions

View File

@@ -1671,6 +1671,8 @@ void DataFile::upgrade_extendedNoteRange()
{
auto root = documentElement();
UpgradeExtendedNoteRange upgradeExtendedNoteRange(root);
upgradeExtendedNoteRange.upgrade();
}