diff --git a/src/gui/editors/AutomationEditor.cpp b/src/gui/editors/AutomationEditor.cpp index 17adf7468..a7ceee13a 100644 --- a/src/gui/editors/AutomationEditor.cpp +++ b/src/gui/editors/AutomationEditor.cpp @@ -1334,13 +1334,9 @@ 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;