Skip to content

Commit

Permalink
Fix missing initialization (#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 and Rossmaxx committed May 21, 2024
1 parent 5dcada0 commit cf766b0
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 @@ -70,7 +70,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 cf766b0

Please sign in to comment.