diff view/Pane.cpp @ 521:3b345b9a4575

...
author Chris Cannam
date Fri, 13 Mar 2009 11:28:41 +0000
parents 683c46d7500b
children 0db823c49ed6
line wrap: on
line diff
--- a/view/Pane.cpp	Fri Mar 13 11:06:11 2009 +0000
+++ b/view/Pane.cpp	Fri Mar 13 11:28:41 2009 +0000
@@ -1668,8 +1668,8 @@
         float rmax = min + ((max - min) * (height() - y0)) / height();
         std::cerr << "min: " << min << ", max: " << max << ", y0: " << y0 << ", y1: " << y1 << ", h: " << height() << ", rmin: " << rmin << ", rmax: " << rmax << std::endl;
         if (log) {
-            rmin = powf(10, rmin);
-            rmax = powf(10, rmax);
+            rmin = exp10f(rmin);
+            rmax = exp10f(rmax);
         }
         std::cerr << "finally: rmin: " << rmin << ", rmax: " << rmax << " " << unit.toStdString() << std::endl;