Mercurial > hg > svgui
diff view/Pane.cpp @ 522:0db823c49ed6
...!
author | Chris Cannam |
---|---|
date | Fri, 13 Mar 2009 11:33:26 +0000 |
parents | 3b345b9a4575 |
children | e6122e4999a3 |
line wrap: on
line diff
--- 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;