aboutsummaryrefslogtreecommitdiffstats
path: root/profile-widget
diff options
context:
space:
mode:
Diffstat (limited to 'profile-widget')
-rw-r--r--profile-widget/profilewidget2.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/profile-widget/profilewidget2.cpp b/profile-widget/profilewidget2.cpp
index d0c58c8ab..8c1783998 100644
--- a/profile-widget/profilewidget2.cpp
+++ b/profile-widget/profilewidget2.cpp
@@ -1300,6 +1300,9 @@ void ProfileWidget2::setAddState(const dive *d, int dc)
diveCeiling->setVisible(true);
decoModelParameters->setVisible(true);
setBackgroundBrush(QColor("#A7DCFF"));
+
+ pointsReset();
+ repositionDiveHandlers();
}
void ProfileWidget2::setPlanState(const dive *d, int dc)
@@ -1328,6 +1331,9 @@ void ProfileWidget2::setPlanState(const dive *d, int dc)
diveCeiling->setVisible(true);
decoModelParameters->setVisible(true);
setBackgroundBrush(QColor("#D7E3EF"));
+
+ pointsReset();
+ repositionDiveHandlers();
}
#endif