Skip to content

Commit

Permalink
[MU4] fix musescore#7819 - don't draw page elements onto beyond page …
Browse files Browse the repository at this point in the history
…bounding box
  • Loading branch information
wizofaus committed Jul 10, 2021
1 parent b6fde2b commit 4864902
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/notation/internal/notation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -326,11 +326,14 @@ void Notation::paintPages(draw::Painter* painter, const RectF& frameRect, const
PointF pagePosition(page->pos());
painter->translate(pagePosition);
paintForeground(painter, page->bbox());
painter->qpainter()->setClipping(true);
painter->qpainter()->setClipRect(page->bbox().toQRect());

QList<Element*> elements = page->items(frameRect.translated(-page->pos()));
Ms::paintElements(*painter, elements);

painter->translate(-pagePosition);
painter->qpainter()->setClipping(false);
}
}

Expand Down

0 comments on commit 4864902

Please sign in to comment.