summaryrefslogtreecommitdiffstats
path: root/profile-widget
diff options
context:
space:
mode:
authorGravatar Robert C. Helling <helling@atdotde.de>2017-02-04 14:12:43 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-02-04 07:09:35 -0800
commit2516ae7e5f2a8912a394181fe451337a3a22c9ee (patch)
tree946737d8f4ef1f8ed749bf188c2d5ac7cd3331e0 /profile-widget
parentcd38cda186c0fd0849854ae85c012a152ec5ffbc (diff)
downloadsubsurface-2516ae7e5f2a8912a394181fe451337a3a22c9ee.tar.gz
Let cylinderid = -1 mean same gas as before
It's not too clever to give 0 a special meaning (as here: use same gas as for previous leg) when 0 is a legitimate value. This should solve Willem's gas disappearance problem when reediting a dive in the planner. Signed-off-by: Robert C. Helling <helling@atdotde.de>
Diffstat (limited to 'profile-widget')
-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 0ad2b5601..38aa9d64f 100644
--- a/profile-widget/profilewidget2.cpp
+++ b/profile-widget/profilewidget2.cpp
@@ -932,7 +932,7 @@ void ProfileWidget2::mouseDoubleClickEvent(QMouseEvent *event)
int minutes = rint(timeAxis->valueAt(mappedPos) / 60);
int milimeters = rint(profileYAxis->valueAt(mappedPos) / M_OR_FT(1, 1)) * M_OR_FT(1, 1);
- plannerModel->addStop(milimeters, minutes * 60, 0, 0, true);
+ plannerModel->addStop(milimeters, minutes * 60, -1, 0, true);
}
}