mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
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>
This commit is contained in:
parent
b55218c2f4
commit
79015e17f8
1 changed files with 1 additions and 1 deletions
|
@ -1042,7 +1042,7 @@ void ProfileWidget2::changeGas()
|
||||||
int seconds = timeAxis->valueAt(scenePos);
|
int seconds = timeAxis->valueAt(scenePos);
|
||||||
|
|
||||||
validate_gas(gas.toUtf8().constData(), &gasmix);
|
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
|
// this means we potentially have a new tank that is being used and needs to be shown
|
||||||
fixup_dive(&displayed_dive);
|
fixup_dive(&displayed_dive);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue