diff layer/TimeValueLayer.cpp @ 1402:b0eeec95ab5b

Handle integer pixel scaling as well
author Chris Cannam
date Thu, 15 Nov 2018 14:18:26 +0000
parents 28075cc658c9
children c8a6fd3f9dff
line wrap: on
line diff
--- a/layer/TimeValueLayer.cpp	Thu Nov 15 14:04:32 2018 +0000
+++ b/layer/TimeValueLayer.cpp	Thu Nov 15 14:18:26 2018 +0000
@@ -565,7 +565,7 @@
     }
 
     if (!usePoints.empty()) {
-        int fuzz = v->scaleSize(2);
+        double fuzz = v->scaleSize(2);
         int px = v->getXForFrame(usePoints.begin()->frame);
         if ((px > x && px - x > fuzz) ||
             (px < x && x - px > fuzz + 3)) {