aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Jan Mulder <jlmulder@xs4all.nl>2018-01-24 11:42:42 +0100
committerGravatar Jan Mulder <jlmulder@xs4all.nl>2018-01-24 16:19:19 +0100
commit36cfab46bd012830e17858e7b0b5a38a223bb5f8 (patch)
treed754f34fcd60de9d605bab4cca9d2101152157cd
parent2c8693f46846301e0c6833a996bc1364bf17ffc2 (diff)
downloadsubsurface-36cfab46bd012830e17858e7b0b5a38a223bb5f8.tar.gz
profile: fix weird disappearance of cylinder pressure line
The reason for this issue, and fix for this is very similar to commit b4d37e8ee. Just set both recalculate flags on a mouse release event, so that the cylinder pressure line is recalculated. Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
-rw-r--r--profile-widget/profilewidget2.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/profile-widget/profilewidget2.cpp b/profile-widget/profilewidget2.cpp
index 85b6b1c78..b36d73da2 100644
--- a/profile-widget/profilewidget2.cpp
+++ b/profile-widget/profilewidget2.cpp
@@ -904,7 +904,7 @@ void ProfileWidget2::mouseReleaseEvent(QMouseEvent *event)
return;
QGraphicsView::mouseReleaseEvent(event);
if (currentState == PLAN || currentState == ADD || currentState == EDIT) {
- shouldCalculateMaxTime = true;
+ shouldCalculateMaxTime = shouldCalculateMaxDepth = true;
replot();
}
}