Skip to content

Commit

Permalink
Merge pull request #746 from Gai-Luron/fix-move-first-slur-anchor
Browse files Browse the repository at this point in the history
fix slur issue #24929
  • Loading branch information
wschweer committed Mar 12, 2014
2 parents 2acc777 + 09a9388 commit be376dc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libmscore/spanner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -355,9 +355,11 @@ ChordRest* Score::findCR(int tick, int track) const
Segment* s = m->first(Segment::SegChordRest);
for (;;) {
Segment* ns = s->next(Segment::SegChordRest);
if (ns == 0 || ns->tick() >= tick)
if (ns == 0 || ns->tick() > tick)
break;
s = ns;
if (ns->tick() == tick)
break;
}
if (s)
return static_cast<ChordRest*>(s->element(track));
Expand Down

0 comments on commit be376dc

Please sign in to comment.