# HG changeset patch # User Chris Cannam # Date 1236944006 0 # Node ID 0db823c49ed6cd57e7982b24a6a8016db8fae446 # Parent 3b345b9a457574935f9ba73eccd69758c077d15f ...! diff -r 3b345b9a4575 -r 0db823c49ed6 view/Pane.cpp --- a/view/Pane.cpp Fri Mar 13 11:28:41 2009 +0000 +++ b/view/Pane.cpp Fri Mar 13 11:33:26 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 = exp10f(rmin); - rmax = exp10f(rmax); + rmin = powf(10, rmin); + rmax = powf(10, rmax); } std::cerr << "finally: rmin: " << rmin << ", rmax: " << rmax << " " << unit.toStdString() << std::endl;