Skip to content

Commit

Permalink
Added Brackets
Browse files Browse the repository at this point in the history
  • Loading branch information
WalterSmuts committed Mar 11, 2017
1 parent 7d0355e commit ff80186
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/gui/editors/AutomationEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1334,9 +1334,13 @@ void AutomationEditor::paintEvent(QPaintEvent * pe )

float nextValue;
if ( m_pattern->valuesAfter( ( it + 1 ).key() ) != NULL )
{
nextValue = *( m_pattern->valuesAfter( ( it + 1 ).key() ) );
}
else
{
nextValue = values[ ( it + 1 ).key() - it.key() -1 ];
}

p.setRenderHints( QPainter::Antialiasing, true );
QPainterPath path;
Expand Down

0 comments on commit ff80186

Please sign in to comment.