diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-01-18 14:33:12 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-01-18 14:33:12 -0800 |
commit | 2c6830c399d711db8149a2bc1bec0a83e54cae0c (patch) | |
tree | 86a162859f3c4b712f4ccafdf91c05f16a0dd40a | |
parent | b3179380cfc2ebbea4eb2ec4ad218ae42060f266 (diff) | |
download | subsurface-2c6830c399d711db8149a2bc1bec0a83e54cae0c.tar.gz |
Fix maxdepth in new profile
get_maxdepth() already gives you the correctly rounded maximum depth.
Don't mess with it.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r-- | qt-ui/profile/profilewidget2.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/profile/profilewidget2.cpp b/qt-ui/profile/profilewidget2.cpp index 7c2e9c616..09f41bdc9 100644 --- a/qt-ui/profile/profilewidget2.cpp +++ b/qt-ui/profile/profilewidget2.cpp @@ -284,7 +284,7 @@ void ProfileWidget2::plotDives(QList<dive*> dives) // It seems that I'll have a lot of boilerplate setting the model / axis for // each item, I'll mostly like to fix this in the future, but I'll keep at this for now. - profileYAxis->setMaximum(qMax<long>(pInfo.maxdepth + M_OR_FT(10,30), maxdepth * 2 / 3)); + profileYAxis->setMaximum(maxdepth); profileYAxis->updateTicks(); temperatureAxis->setMinimum(pInfo.mintemp); temperatureAxis->setMaximum(pInfo.maxtemp); |