diff options
author | Miika Turkia <miika.turkia@gmail.com> | 2014-07-12 13:12:23 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-07-12 08:04:42 -0700 |
commit | 79015e17f890eee41fb4f8894468e17478ae3657 (patch) | |
tree | 92fd818337c543b55b82a41e81641db92556f20e /qt-ui | |
parent | b55218c2f400d61ad4b8dbb115909b3b8169617b (diff) | |
download | subsurface-79015e17f890eee41fb4f8894468e17478ae3657.tar.gz |
Fix inserting gaschange events
Use a macro that works to get the current DC.
Fixes #613
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r-- | qt-ui/profile/profilewidget2.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/profile/profilewidget2.cpp b/qt-ui/profile/profilewidget2.cpp index b0f221639..dfe514f28 100644 --- a/qt-ui/profile/profilewidget2.cpp +++ b/qt-ui/profile/profilewidget2.cpp @@ -1042,7 +1042,7 @@ void ProfileWidget2::changeGas() int seconds = timeAxis->valueAt(scenePos); validate_gas(gas.toUtf8().constData(), &gasmix); - add_gas_switch_event(&displayed_dive, get_dive_dc(&displayed_dive, diveComputer), seconds, get_gasidx(&displayed_dive, &gasmix)); + add_gas_switch_event(&displayed_dive, current_dc, seconds, get_gasidx(&displayed_dive, &gasmix)); // this means we potentially have a new tank that is being used and needs to be shown fixup_dive(&displayed_dive); |