[PATCH 1/2] Fix inserting gaschange events
Miika Turkia
miika.turkia at gmail.com
Sat Jul 12 03:12:23 PDT 2014
Use a macro that works to get the current DC.
Fixes #613
Signed-off-by: Miika Turkia <miika.turkia at gmail.com>
---
qt-ui/profile/profilewidget2.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/qt-ui/profile/profilewidget2.cpp b/qt-ui/profile/profilewidget2.cpp
index b0f2216..dfe514f 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);
--
1.9.1
More information about the subsurface
mailing list