summaryrefslogtreecommitdiffstats
path: root/profile-widget
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2017-11-25 10:38:15 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-11-25 15:42:44 -0800
commit82898a837dda19a288be99eb4c05d6b8d311e3c4 (patch)
tree984e38e7278f338fe85727b98b0cf818976f15e4 /profile-widget
parent6343515fedbc43be4fd2cb3f1b3fea384e362c59 (diff)
downloadsubsurface-82898a837dda19a288be99eb4c05d6b8d311e3c4.tar.gz
Fix toggling of partial pressure graphs
When toggling the display of the partial pressure graph, the graph was either not shown correctly or unnecessary ticks were left in the graph. Calling the settingsChanged() method of the profileYAxis object solves the problem by initializing the ticks according to the selected graphs. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'profile-widget')
-rw-r--r--profile-widget/profilewidget2.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/profile-widget/profilewidget2.cpp b/profile-widget/profilewidget2.cpp
index 0f4471974..80276c7d1 100644
--- a/profile-widget/profilewidget2.cpp
+++ b/profile-widget/profilewidget2.cpp
@@ -828,6 +828,7 @@ void ProfileWidget2::settingsChanged()
// because the GF could have changed; otherwise we try to avoid replot()
bool needReplot = prefs.calcceiling;
#ifndef SUBSURFACE_MOBILE
+ gasYAxis->settingsChanged(); // Initialize ticks of partial pressure graph
if ((prefs.percentagegraph||prefs.hrgraph) && PP_GRAPHS_ENABLED) {
profileYAxis->animateChangeLine(itemPos.depth.shrinked);
temperatureAxis->setPos(itemPos.temperatureAll.pos.on);