changeset 1491:2f505d843d14

Fix overlooked alignment
author Chris Cannam
date Thu, 08 Aug 2019 13:33:30 +0100
parents c83504eb2649
children a2fbcfeb2572
files view/ViewProxy.h
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);