Skip to content

Commit

Permalink
Fix musescore#7819 - adjustment to previous page-clipping fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wizofaus committed May 16, 2024
1 parent fdf6726 commit 6ff72a0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/engraving/rendering/dev/paint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,11 @@ void Paint::paintScore(Painter* painter, Score* score, const IScoreRenderer::Pai
painter->translate(-pageRect.topLeft());
}

if (painter->hasClipping() && drawRect.bottom() > pageRect.bottom()) {
// prevent elements from being drawn below the bottom of the page (e.g. too many staves)
painter->setClipRect(pageRect);
}

// Draw page sheet
if (opt.onPaintPageSheet) {
opt.onPaintPageSheet(painter, page, pageRect);
Expand Down

0 comments on commit 6ff72a0

Please sign in to comment.