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>
This commit is contained in:
Jan Mulder 2018-01-24 11:42:42 +01:00
parent 2c8693f468
commit 36cfab46bd

View file

@ -904,7 +904,7 @@ void ProfileWidget2::mouseReleaseEvent(QMouseEvent *event)
return; return;
QGraphicsView::mouseReleaseEvent(event); QGraphicsView::mouseReleaseEvent(event);
if (currentState == PLAN || currentState == ADD || currentState == EDIT) { if (currentState == PLAN || currentState == ADD || currentState == EDIT) {
shouldCalculateMaxTime = true; shouldCalculateMaxTime = shouldCalculateMaxDepth = true;
replot(); replot();
} }
} }