Skip to content

Commit

Permalink
ported #7042, #5730 : fix #313704: crash generating parts with text/h…
Browse files Browse the repository at this point in the history
…bo/vbox
  • Loading branch information
igorkorsukov authored and vpereverzev committed Feb 12, 2021
1 parent 257f13b commit 839816d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libmscore/measurebase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ void MeasureBase::triggerLayout() const
const MeasureBase* mb = top();
// avoid triggering layout before getting added to a score
if (mb->prev() || mb->next()) {
score()->setLayout(mb->tick(), -1, this);
score()->setLayout(mb->tick(), -1, mb);
}
}

Expand Down Expand Up @@ -645,7 +645,7 @@ int MeasureBase::index() const
int MeasureBase::measureIndex() const
{
int idx = 0;
MeasureBase* m = score()->first();
MeasureBase* m = score()->firstMeasure();
while (m) {
if (m == this) {
return idx;
Expand Down

0 comments on commit 839816d

Please sign in to comment.