# HG changeset patch # User Chris Cannam # Date 1416581427 0 # Node ID c0549bf1297385e84334bcc4a6ca9b5079f15fd6 # Parent 6a590241d8adf838861c074801ade0127fa9b51d Fix misalignment in alignment view diff -r 6a590241d8ad -r c0549bf12973 view/AlignmentView.cpp --- a/view/AlignmentView.cpp Fri Nov 21 12:49:20 2014 +0000 +++ b/view/AlignmentView.cpp Fri Nov 21 14:50:27 2014 +0000 @@ -130,9 +130,9 @@ vector keyFrames = getKeyFrames(); foreach (int f, keyFrames) { - int af = m_above->alignFromReference(f); - int ax = m_above->getXForFrame(af); - int bf = m_below->alignFromReference(f); + int ax = m_above->getXForFrame(f); + int rf = m_above->alignToReference(f); + int bf = m_below->alignFromReference(rf); int bx = m_below->getXForFrame(bf); paint.drawLine(ax, 0, bx, height()); }