Skip to content

Commit

Permalink
fix #22785: Drag-selecting, copying and pasting a multi-voice note ca…
Browse files Browse the repository at this point in the history
…uses hang
  • Loading branch information
lasconic committed Feb 13, 2014
1 parent 1b4d81d commit 7ade02b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libmscore/cmd.cpp
Expand Up @@ -784,15 +784,15 @@ bool Score::makeGap1(int tick, int staffIdx, Fraction len)
cr = static_cast<ChordRest*>(seg->element(track));
if (!cr) {
// check if we are in the middle of a chord/rest
Segment* seg1 = 0;
Segment* seg1 = seg->prev(Segment::SegChordRest);;
for (;;) {
seg1 = seg->prev(Segment::SegChordRest);
if (seg1 == 0) {
qDebug("1:makeGap1: no segment at %d", tick);
return false;
}
if (seg1->element(track))
break;
seg1 = seg1->prev(Segment::SegChordRest);
}
ChordRest* cr1 = static_cast<ChordRest*>(seg1->element(track));
Fraction srcF = cr1->duration();
Expand Down

0 comments on commit 7ade02b

Please sign in to comment.