musescore/MuseScore — pull request #779 by mgavioli (2014-03-16 22:42:15+00:00)
Title: Selecting [undefined] TPC in Ambitus inspector causes crash.

The [undefined] item is informational only (when the ambitus range cannot be calculated, for instance when there are no notes in the staff yet) and should not be selected.

Fixed at two levels:

1) The [undefined] item is disabled and cannot be selected any longer

2) The Ambitus::layout() method is more robust in dealing with undefined ranges.