Skip to content

Commit

Permalink
Fixes note drawing on Song Editor
Browse files Browse the repository at this point in the history
	- Notes were not being draw on the song editor for BeatClips.
This commit fixes this.
  • Loading branch information
IanCaio committed Oct 17, 2023
1 parent 38dd8ec commit 31a2bd3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/gui/clips/MidiClipView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,12 @@ void MidiClipView::paintEvent( QPaintEvent * )
}
}
// Melody clip and Beat clip (on Song Editor) paint event
else if (m_clip->m_clipType == MidiClip::Type::MelodyClip && !noteCollection.empty())
else if
(
!noteCollection.empty() &&
(m_clip->m_clipType == MidiClip::Type::MelodyClip ||
m_clip->m_clipType == MidiClip::Type::BeatClip)
)
{
// Compute the minimum and maximum key in the clip
// so that we know how much there is to draw.
Expand Down

0 comments on commit 31a2bd3

Please sign in to comment.