diff options
author | Jan Mulder <jlmulder@xs4all.nl> | 2018-01-24 11:42:42 +0100 |
---|---|---|
committer | Jan Mulder <jlmulder@xs4all.nl> | 2018-01-24 16:19:19 +0100 |
commit | 36cfab46bd012830e17858e7b0b5a38a223bb5f8 (patch) | |
tree | d754f34fcd60de9d605bab4cca9d2101152157cd /profile-widget | |
parent | 2c8693f46846301e0c6833a996bc1364bf17ffc2 (diff) | |
download | subsurface-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>
Diffstat (limited to 'profile-widget')
-rw-r--r-- | profile-widget/profilewidget2.cpp | 2 |
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(); } } |