Skip to content

Commit

Permalink
Merge pull request #1880 from AntonioBL/guitarpro_crash
Browse files Browse the repository at this point in the history
fix #22805 crash on Guitar Pro import
  • Loading branch information
lasconic committed Mar 13, 2015
2 parents 1341f0a + 871df44 commit db6293f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mscore/importgtp-gp6.cpp
Expand Up @@ -880,9 +880,10 @@ int GuitarPro6::readBeats(QString beats, GPPartInfo* partInfo, Measure* measure,
// natural harmonic = artificial harmonic?
if (!harmonicText.compare("Natural"))
harmonicNote = note;
else
else {
harmonicNote = new Note(score);
chord->add(harmonicNote);
chord->add(harmonicNote);
}

Staff* staff = note->staff();
int harmonicFret = fretNum.toInt();
Expand Down

0 comments on commit db6293f

Please sign in to comment.