Skip to content

Commit 9ff882d

Browse files
committed
Fix invisible note editing handles when a note has detuning info
Fixes a regression in 32df2d7, the clipping area was restored in a wrong place. Also, a wrong value was used while restoring.
1 parent 8f4757e commit 9ff882d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎src/gui/editors/PianoRoll.cpp‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3077,12 +3077,12 @@ void PianoRoll::paintEvent(QPaintEvent * pe )
30773077
drawDetuningInfo( p, note,
30783078
x + WHITE_KEY_WIDTH,
30793079
y_base - key * KEY_LINE_HEIGHT );
3080+
p.setClipRect(WHITE_KEY_WIDTH, PR_TOP_MARGIN,
3081+
width() - WHITE_KEY_WIDTH,
3082+
height() - PR_TOP_MARGIN);
30803083
}
30813084
}
30823085

3083-
p.setClipRect(WHITE_KEY_WIDTH, PR_TOP_MARGIN,
3084-
width() - WHITE_KEY_WIDTH,
3085-
height() - PR_TOP_MARGIN - PR_TOP_MARGIN);
30863086

30873087
p.setPen( QPen( noteColor(), NOTE_EDIT_LINE_WIDTH + 2 ) );
30883088
p.drawPoints( editHandles );

0 commit comments

Comments
 (0)