# HG changeset patch
# User Chris Cannam
# Date 1529932347 -3600
# Node ID 71202259002d4e0fcdcd3c9020a397b42fa6b2b1
# Parent  f2fcb3ed51fa6a8bee530347eade84545e543fab
Round the zero-point value -- won't make a difference for longer fader widgets, but it's convenient for the level-pan widget when we have 0-10 and want zero at 8 rather than 7

diff -r f2fcb3ed51fa -r 71202259002d base/AudioLevel.cpp
--- a/base/AudioLevel.cpp	Thu Jun 21 15:37:27 2018 +0100
+++ b/base/AudioLevel.cpp	Mon Jun 25 14:12:27 2018 +0100
@@ -127,7 +127,7 @@
 
     } else { // scale proportional to sqrt(fabs(dB))
 
-        int zeroLevel = int(maxLevel * faderTypes[type].zeroPoint);
+        int zeroLevel = int(round(maxLevel * faderTypes[type].zeroPoint));
     
         if (level >= zeroLevel) {
             
@@ -172,7 +172,7 @@
 
     } else {
 
-        int zeroLevel = int(maxLevel * faderTypes[type].zeroPoint);
+        int zeroLevel = int(round(maxLevel * faderTypes[type].zeroPoint));
 
         if (dB >= 0.) {