Skip to content

Commit

Permalink
Merge pull request #2116 from MarcSabatella/68466-spanner-mmrest
Browse files Browse the repository at this point in the history
fix #68466: spanner changes to length of mmrest
  • Loading branch information
lasconic committed Jul 11, 2015
2 parents ab0ba20 + 14ccf0c commit 3f29a6c
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions libmscore/spanner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -539,12 +539,14 @@ void Spanner::computeEndElement()
qDebug("%s no end element for tick %d", name(), tick2());
return;
}
int nticks = endCR()->tick() + endCR()->actualTicks() - _tick;
if (_ticks != nticks) {
qDebug("%s ticks changed, %d -> %d", name(), _ticks, nticks);
setTicks(nticks);
if (type() == Element::Type::OTTAVA)
staff()->updateOttava();
if (!endCR()->measure()->isMMRest()) {
int nticks = endCR()->tick() + endCR()->actualTicks() - _tick;
if (_ticks != nticks) {
qDebug("%s ticks changed, %d -> %d", name(), _ticks, nticks);
setTicks(nticks);
if (type() == Element::Type::OTTAVA)
staff()->updateOttava();
}
}
}
break;
Expand Down

0 comments on commit 3f29a6c

Please sign in to comment.