summaryrefslogtreecommitdiffstats
path: root/qt-ui/profile/profilewidget2.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-06-01 18:18:29 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-06-01 18:18:57 -0700
commit89f35321452925182594304961193a8091368ff7 (patch)
treeb6fe6555762adfe07427748a39709a56c33f981e /qt-ui/profile/profilewidget2.cpp
parentcfb93cb92c7b5228c4a1ccd6cffcb8bd92db17fb (diff)
downloadsubsurface-89f35321452925182594304961193a8091368ff7.tar.gz
More conversions to gasmix
addStop, addGas and createSimpleDive. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/profile/profilewidget2.cpp')
-rw-r--r--qt-ui/profile/profilewidget2.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/qt-ui/profile/profilewidget2.cpp b/qt-ui/profile/profilewidget2.cpp
index 4cfd295f8..3d740ca1b 100644
--- a/qt-ui/profile/profilewidget2.cpp
+++ b/qt-ui/profile/profilewidget2.cpp
@@ -605,7 +605,8 @@ 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, -1, 0, 0, true);
+ struct gasmix ignore = { 0 };
+ plannerModel->addStop(milimeters, minutes * 60, ignore, 0, true, true);
}
}