diff --git a/src/gui/automation_pattern_view.cpp b/src/gui/automation_pattern_view.cpp index fc765b4da..1ae774206 100644 --- a/src/gui/automation_pattern_view.cpp +++ b/src/gui/automation_pattern_view.cpp @@ -246,12 +246,13 @@ void automationPatternView::paintEvent( QPaintEvent * ) m_pat->getTimeMap().begin(); it != m_pat->getTimeMap().end(); ++it ) { - const float x1 = 2 * x_base + it.key() * ppt / + const float x1 = x_base + it.key() * ppt / midiTime::ticksPerTact(); float x2; if( it+1 != m_pat->getTimeMap().end() ) { - x2 = (it+1).key() * ppt / midiTime::ticksPerTact() + 2; + x2 = x_base + (it+1).key() * ppt / + midiTime::ticksPerTact() + 1; } else {