Mercurial > hg > svgui
changeset 521:3b345b9a4575
...
author | Chris Cannam |
---|---|
date | Fri, 13 Mar 2009 11:28:41 +0000 |
parents | 86559bf8219e |
children | 0db823c49ed6 |
files | view/Pane.cpp |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
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;