Merge pull request #2178 from MarcSabatella/74021-transpose-text-crash

fix #74021: crash on transpose with frame text selected
This commit is contained in:
Marc Sabatella 2015-08-19 17:43:14 -06:00
commit a23ef389c0

View file

@ -296,7 +296,7 @@ bool Score::transpose(TransposeMode mode, TransposeDirection direction, Key trKe
if (_selection.isList()) {
foreach (Element* e, _selection.uniqueElements()) {
if (e->staff()->staffType()->group() == StaffGroup::PERCUSSION)
if (!e->staff() || e->staff()->staffType()->group() == StaffGroup::PERCUSSION)
continue;
if (e->type() == Element::Type::NOTE) {
Note* note = static_cast<Note*>(e);