Skip to content

Commit

Permalink
fix #88021: Time signatures with compound-time are corrupted in .gpx …
Browse files Browse the repository at this point in the history
…format
  • Loading branch information
lasconic committed Mar 17, 2016
1 parent 871e001 commit ec396e2
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions mscore/importgtp-gp6.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1494,19 +1494,13 @@ void GuitarPro6::readBars(QDomNode* barList, Measure* measure, ClefType oldClefI
voiceNum +=1;
if (currentVoice.toInt() == - 1) {
if (contentAdded) continue;
Fraction l = Fraction(1,1);
Fraction l = measure->len();
// add a rest with length of l
ChordRest* cr = new Rest(score);
cr->setTrack(staffIdx * VOICES + voiceNum);
TDuration d(l);
cr->setDuration(l);
if (cr->type() == Element::Type::REST && l >= measure->len()) {
cr->setDurationType(TDuration::DurationType::V_MEASURE);
cr->setDuration(measure->len());
}
else
cr->setDurationType(d);

cr->setDurationType(TDuration::DurationType::V_MEASURE);
Segment* segment = measure->getSegment(Segment::Type::ChordRest, tick);
if(!segment->cr(staffIdx * VOICES + voiceNum))
segment->add(cr);
Expand Down

0 comments on commit ec396e2

Please sign in to comment.