From 82898a837dda19a288be99eb4c05d6b8d311e3c4 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sat, 25 Nov 2017 10:38:15 +0100 Subject: 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 --- profile-widget/profilewidget2.cpp | 1 + 1 file changed, 1 insertion(+) 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); -- cgit v1.2.3-70-g09d2