diff --git a/src/gui/editors/AutomationEditor.cpp b/src/gui/editors/AutomationEditor.cpp index 0649cbc7d..a6f7d16de 100644 --- a/src/gui/editors/AutomationEditor.cpp +++ b/src/gui/editors/AutomationEditor.cpp @@ -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;