Skip to content

Commit

Permalink
fix #23319. When inserting a spanner, extend it to the end of measure
Browse files Browse the repository at this point in the history
  • Loading branch information
lasconic committed Jul 28, 2014
1 parent d6fcb0e commit ae475eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libmscore/cmd.cpp
Expand Up @@ -234,7 +234,7 @@ void Score::cmdAddSpanner(Spanner* spanner, const QPointF& pos)
if (spanner->anchor() == Spanner::Anchor::SEGMENT) {
spanner->setTick(segment->tick());
int lastTick = lastMeasure()->tick() + lastMeasure()->ticks();
int tick2 = qMin(segment->tick() + segment->measure()->ticks(), lastTick);
int tick2 = qMin(segment->measure()->tick() + segment->measure()->ticks(), lastTick);
spanner->setTick2(tick2);
}
else { // Anchor::MEASURE
Expand Down

0 comments on commit ae475eb

Please sign in to comment.