musescore/MuseScore — pull request #923 by mgavioli (2014-05-21 22:20:22+00:00)
Title: Fix #22996 - Wrong clef when selecting standard type in instr. wizard

Fix #22996 - Wrong clef when selecting standard staff type in instrument wizard.

In the instrument wizard, when a staff is changed to standard type (from a previous different type), the standard clef of the instrument is lost.

Changes:
- Added a `_defaultClef` member variable to `StaffListItem` storing the default standard clef for the instrument.
- Modified `instruments.xml` to remove <Clef> tags from tablature instrument definitions: all these instruments are inited from a standard-staff main entry, recording the default standard clef; this clef is used to init the `StaffListItem::_defaultClef` member variable.

NOTE: Percussion instruments are not covered (an number of percussion instruments seem to have old-style definitions in `instruments.xml`); conversion from percussion to standard staff may yield unexpected results.