From 2c6830c399d711db8149a2bc1bec0a83e54cae0c Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sat, 18 Jan 2014 14:33:12 -0800 Subject: 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 --- qt-ui/profile/profilewidget2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 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(pInfo.maxdepth + M_OR_FT(10,30), maxdepth * 2 / 3)); + profileYAxis->setMaximum(maxdepth); profileYAxis->updateTicks(); temperatureAxis->setMinimum(pInfo.mintemp); temperatureAxis->setMaximum(pInfo.maxtemp); -- cgit v1.2.3-70-g09d2