Mercurial > hg > svgui
changeset 882:c0549bf12973 alignment_view
Fix misalignment in alignment view
author | Chris Cannam |
---|---|
date | Fri, 21 Nov 2014 14:50:27 +0000 |
parents | 6a590241d8ad |
children | d4446f267e12 |
files | view/AlignmentView.cpp |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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<int> 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()); }