Skip to content

Commit

Permalink
fix #276149: Resizing bracket causes crash
Browse files Browse the repository at this point in the history
  • Loading branch information
mattmcclinch committed Sep 13, 2018
1 parent 1b1ac45 commit 85ced64
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions libmscore/layout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3744,10 +3744,6 @@ void Score::doLayoutRange(int stick, int etick)
// qDebug("start <%s> tick %d, system %p", m->name(), m->tick(), m->system());
lc.score = m->score();

if (lineMode()) {
layoutLinear(layoutAll, lc);
return;
}
std::vector<std::pair<int, BracketItem*>> selectedBrackets;

if (!layoutAll && m->system()) {
Expand Down Expand Up @@ -3814,6 +3810,11 @@ void Score::doLayoutRange(int stick, int etick)
lc.nextMeasure = _measures.first();
}

if (lineMode()) {
layoutLinear(layoutAll, lc);
return;
}

lc.prevMeasure = 0;

getNextMeasure(lc);
Expand Down

0 comments on commit 85ced64

Please sign in to comment.