diff layer/WaveformLayer.cpp @ 34:c43f2c4f66f2

* As previous commit
author Chris Cannam
date Fri, 17 Feb 2006 18:11:08 +0000
parents 202d1dca67d2
children f2c416cbdaa9
line wrap: on
line diff
--- a/layer/WaveformLayer.cpp	Fri Feb 17 18:04:26 2006 +0000
+++ b/layer/WaveformLayer.cpp	Fri Feb 17 18:11:08 2006 +0000
@@ -107,7 +107,7 @@
 	*min = -50;
 	*max = 50;
 
-	deft = int(nearbyint(log10(m_gain) * 20.0));
+	deft = lrint(log10(m_gain) * 20.0);
 	if (deft < *min) deft = *min;
 	if (deft > *max) deft = *max;