Skip to content

Commit

Permalink
Merge pull request #2977 from AntonioBL/guitarprotwostaves
Browse files Browse the repository at this point in the history
fix #166101 [GP6] Crash when opening a file containing 2Mrcs instrument
  • Loading branch information
lasconic committed Feb 5, 2017
2 parents 101541c + 2020bce commit c66f162
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mscore/importgtp-gp6.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ void GuitarPro6::readTracks(QDomNode* track)
}
else
qDebug() << "Unknown instrument: " << ref;
if (ref.endsWith("-gs")) { // grand staff
if (ref.endsWith("-gs") || ref.startsWith("2")) { // grand staff
Staff* s2 = new Staff(score);
s2->setPart(part);
part->insertStaff(s2, -1);
Expand Down

0 comments on commit c66f162

Please sign in to comment.