Skip to content

Commit

Permalink
fix #274204: Regression: Ambitus causes a crash just while clicking o…
Browse files Browse the repository at this point in the history
…n it
  • Loading branch information
mattmcclinch committed Jul 23, 2018
1 parent b29ceb8 commit 5fb95f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mscore/inspector/inspectorAmbitus.cpp
Expand Up @@ -67,7 +67,7 @@ InspectorAmbitus::InspectorAmbitus(QWidget* parent)
//
// fix order of noteheads and tpc's
//
for (int i = 0; i < int(NoteHead::Group::HEAD_GROUPS); ++i)
for (int i = 0; i < int(sizeof(heads)/sizeof(*heads)); ++i)
r.noteHeadGroup->setItemData(i, int(heads[i]));
// noteHeadType starts at -1
for (int i = 0; i < 5; ++i)
Expand Down

1 comment on commit 5fb95f8

@Jojo-Schmitz
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And/or extend the local array with HEAD_CUSTOM?

Please sign in to comment.