# HG changeset patch # User Chris Cannam # Date 1236943721 0 # Node ID 3b345b9a457574935f9ba73eccd69758c077d15f # Parent 86559bf8219e2b566f59bded390554d1217f9f1c ... diff -r 86559bf8219e -r 3b345b9a4575 view/Pane.cpp --- 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;