Skip to content

Commit

Permalink
Fix #287598: Do not remove spanners from the measures outside of the …
Browse files Browse the repository at this point in the history
…rewrite range.
  • Loading branch information
WcRnm authored and vpereverzev committed Feb 3, 2021
1 parent b79e923 commit b9956cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libmscore/edit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ bool Score::rewriteMeasures(Measure* fm, Measure* lm, const Fraction& ns, int st
Fraction tick2 = m2->endTick();
auto spanners = s->spannerMap().findOverlapping(tick1.ticks(), tick2.ticks());
for (auto i : spanners) {
if (i.value->tick() >= tick1)
if (i.value->tick() >= tick1 && i.value->tick() < tick2)
undo(new RemoveElement(i.value));
}
s->undoRemoveMeasures(m1, m2, true);
Expand Down

0 comments on commit b9956cb

Please sign in to comment.