Merge pull request #2178 from MarcSabatella/74021-transpose-text-crash
fix #74021: crash on transpose with frame text selected
This commit is contained in:
commit
a23ef389c0
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue