Skip to content

Commit

Permalink
Fix invisible note editing handles when a note has detuning info
Browse files Browse the repository at this point in the history
Fixes a regression in a4301de,
the clipping area was restored in a wrong place.
Also, a wrong value was used while restoring.
  • Loading branch information
PhysSong committed May 6, 2019
1 parent ba92036 commit bba84ad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/gui/editors/PianoRoll.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3077,12 +3077,12 @@ void PianoRoll::paintEvent(QPaintEvent * pe )
drawDetuningInfo( p, note,
x + WHITE_KEY_WIDTH,
y_base - key * KEY_LINE_HEIGHT );
p.setClipRect(WHITE_KEY_WIDTH, PR_TOP_MARGIN,
width() - WHITE_KEY_WIDTH,
height() - PR_TOP_MARGIN);
}
}

p.setClipRect(WHITE_KEY_WIDTH, PR_TOP_MARGIN,
width() - WHITE_KEY_WIDTH,
height() - PR_TOP_MARGIN - PR_TOP_MARGIN);

p.setPen( QPen( noteColor(), NOTE_EDIT_LINE_WIDTH + 2 ) );
p.drawPoints( editHandles );
Expand Down

0 comments on commit bba84ad

Please sign in to comment.