Do not show the heartrate info unconditionally.

use the preferences instead.

Fixes #664

Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Tomaz Canabrava 2014-07-29 19:41:30 -03:00 committed by Dirk Hohndel
parent 3c941c2fb2
commit fcbe6bfc13

View file

@ -454,10 +454,8 @@ void ProfileWidget2::plotDive(struct dive *d, bool force)
heartBeatAxis->setMinimum(pInfo.minhr);
heartBeatAxis->setMaximum(pInfo.maxhr);
heartBeatAxis->updateTicks(HR_AXIS); // this shows the ticks
heartBeatAxis->setVisible(true);
} else {
heartBeatAxis->setVisible(false);
}
heartBeatAxis->setVisible(prefs.hrgraph && pInfo.maxhr);
timeAxis->setMaximum(maxtime);
int i, incr;