summaryrefslogtreecommitdiff
path: root/Applications/Piano
diff options
context:
space:
mode:
Diffstat (limited to 'Applications/Piano')
-rw-r--r--Applications/Piano/RollWidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Applications/Piano/RollWidget.cpp b/Applications/Piano/RollWidget.cpp
index 738bef8f9e..3c6b4b627d 100644
--- a/Applications/Piano/RollWidget.cpp
+++ b/Applications/Piano/RollWidget.cpp
@@ -87,8 +87,8 @@ void RollWidget::paint_event(GUI::PaintEvent& event)
GUI::Painter painter(*this);
painter.translate(frame_thickness(), frame_thickness());
- painter.translate(-horizontal_note_offset_remainder, -note_offset_remainder);
painter.add_clip_rect(event.rect());
+ painter.translate(-horizontal_note_offset_remainder, -note_offset_remainder);
for (int y = 0; y < notes_to_paint; ++y) {
int y_pos = y * note_height;