Skip to content

Commit

Permalink
Fix missing initialization (LMMS#7271)
Browse files Browse the repository at this point in the history
Fix the missing initialization of some variables in `TrackContentWidget`.
This led to some performances issues when the widget was painted because
a for loop was executed for which the variable started at a very large
negative number and was then incremented.
  • Loading branch information
michaelgregorius authored May 20, 2024
1 parent a527427 commit 75d6be2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/gui/tracks/TrackContentWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,12 @@ TrackContentWidget::TrackContentWidget( TrackView * parent ) :
m_coarseGridColor( Qt::SolidPattern ),
m_fineGridColor( Qt::SolidPattern ),
m_horizontalColor( Qt::SolidPattern ),
m_embossColor( Qt::SolidPattern )
m_embossColor( Qt::SolidPattern ),
m_coarseGridWidth(2),
m_fineGridWidth(1),
m_horizontalWidth(1),
m_embossWidth(0),
m_embossOffset(0)
{
setAcceptDrops( true );

Expand Down

0 comments on commit 75d6be2

Please sign in to comment.