# HG changeset patch # User Chris Cannam # Date 1565267610 -3600 # Node ID 2f505d843d144752e7634a52ce73580ed9f82651 # Parent c83504eb264999c64e14ce8cbf720bef0cc6bb55 Fix overlooked alignment diff -r c83504eb2649 -r 2f505d843d14 view/ViewProxy.h --- a/view/ViewProxy.h Fri Aug 02 16:44:32 2019 +0100 +++ b/view/ViewProxy.h Thu Aug 08 13:33:30 2019 +0100 @@ -67,7 +67,7 @@ } sv_frame_t getFrameForX(int x) const override { sv_frame_t f0 = m_view->getFrameForX(x / m_scaleFactor); - if (m_scaleFactor == 1) return f0; + if (m_scaleFactor == 1) return alignToReference(f0); sv_frame_t f1 = m_view->getFrameForX((x / m_scaleFactor) + 1); sv_frame_t f = f0 + ((f1 - f0) * (x % m_scaleFactor)) / m_scaleFactor; return alignToReference(f);