Skip to content

Commit

Permalink
fix #30186: Hang when selecting all and double-clicking feature in Be…
Browse files Browse the repository at this point in the history
…am Properties
  • Loading branch information
lasconic committed Aug 21, 2014
1 parent 4410921 commit 2640c79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libmscore/beam.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1573,7 +1573,7 @@ void Beam::layout2(QList<ChordRest*>crl, SpannerSegmentType, int frag)
bool b64 = (beamLevel >= 2) && (bm == Mode::BEGIN64);

if ((l >= beamLevel && (b32 || b64)) || (l < beamLevel)) {
if (i && crl[i-1]->type() == Element::Type::REST) {
if (i > 1 && crl[i-1]->type() == Element::Type::REST) {
--i;
}
break;
Expand Down

0 comments on commit 2640c79

Please sign in to comment.