Staff incorrectly numbered in "Instruments" dialog

• Jun 30, 2017 - 17:54
Type
Functional
Severity
S4 - Minor
Status
closed
Regression
No
Workaround
No
Project

2.1 / Win 7

1. Create a new score
2. Select "Chose instruments".
3. Add a Classical guitar staff, say. Then use the "Add Staff" or "Add Unlinked Staff" button to add another staff to this one.

Expected result: The second staff line should be labelled "Staff 2".
Actual result: The second staff line is also labelled "Staff 1".

Now click "Finish," then re-open the Instruments dialogue: The staves are now correctly numbered "1" and "2".


Comments

Title Staff incorrectly numbered in "Chose Instruments" dialog Staff incorrectly numbered in "Choose Instruments" dialog
Status PR created fixed

Fixed in branch master, commit 06a09d80ed

_fix #229246: staff incorrectly numbered in "Instruments" dialog

Staff numbers are only updated (actually re-created by genPartList()) upon next opening of the dialog, not instantly when staffs are changed. A new function updatePartIdx() does what's needed to be done._

Fix version
3.5.0