Skip to content

Commit

Permalink
Merge pull request #4947 from MarcSabatella/287993-pedal-repeat
Browse files Browse the repository at this point in the history
fix 287993: bad layout of pedal before start repeat
  • Loading branch information
dmitrio95 committed Apr 22, 2019
2 parents 0eb6673 + 2f7b9ae commit 67fda19
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions libmscore/pedal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,14 @@ QPointF Pedal::linePos(Grip grip, System** sys) const
break;
}
else if (seg->segmentType() == SegmentType::EndBarLine) {
if (!seg->enabled()) {
// disabled barline layout is not reliable
// use width of measure instead
Measure* m = seg->measure();
s = seg->system();
x = m->width() + m->pos().x() - nhw * 2;
seg = nullptr;
}
break;
}
}
Expand Down

0 comments on commit 67fda19

Please sign in to comment.