diff options
author | Lakshman Anumolu <acrlakshman@gmail.com> | 2014-07-14 23:26:30 -0500 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-07-14 21:38:34 -0700 |
commit | 74bfa1b170846597e9ac302798e44da05b9ed4ae (patch) | |
tree | fccbef03096a01ad6e530815d423179bf88572b6 | |
parent | 3bbac30c1b12864ebcce8d086dd5d96de3872ff9 (diff) | |
download | subsurface-74bfa1b170846597e9ac302798e44da05b9ed4ae.tar.gz |
Shrink YAxis when heart rate is on display
This patch makes sure that YAxis is not expanded to cover heart rate
when it is displayed on profile panel.
Signed-off-by: Lakshman Anumolu <acrlakshman@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r-- | qt-ui/profile/profilewidget2.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qt-ui/profile/profilewidget2.cpp b/qt-ui/profile/profilewidget2.cpp index 7863679cb..84df3d222 100644 --- a/qt-ui/profile/profilewidget2.cpp +++ b/qt-ui/profile/profilewidget2.cpp @@ -541,7 +541,7 @@ void ProfileWidget2::settingsChanged() // if we are showing calculated ceilings then we have to replot() // because the GF could have changed; otherwise we try to avoid replot() bool needReplot = prefs.calcceiling; - if (PP_GRAPHS_ENABLED) { + if (PP_GRAPHS_ENABLED || prefs.hrgraph) { profileYAxis->animateChangeLine(itemPos.depth.shrinked); temperatureAxis->animateChangeLine(itemPos.temperature.shrinked); cylinderPressureAxis->animateChangeLine(itemPos.cylinder.shrinked); @@ -751,7 +751,7 @@ void ProfileWidget2::setProfileState() cylinderPressureAxis->setVisible(true); profileYAxis->setPos(itemPos.depth.pos.on); - if (prefs.pp_graphs.phe || prefs.pp_graphs.po2 || prefs.pp_graphs.pn2) { + if (prefs.pp_graphs.phe || prefs.pp_graphs.po2 || prefs.pp_graphs.pn2 || prefs.hrgraph) { profileYAxis->setLine(itemPos.depth.shrinked); temperatureAxis->setLine(itemPos.temperature.shrinked); cylinderPressureAxis->setLine(itemPos.cylinder.shrinked); |