Ignore invalid dives in subsurface-mobile dive summary

Match subsurface-desktop's invalid dive behavior

Signed-off-by: Tim Segers <tsegers@pm.me>
This commit is contained in:
Tim Segers 2021-10-07 00:11:20 +02:00 committed by Lubomir I. Ivanov
parent 18c0fa37d1
commit f3a02d7049

View file

@ -121,6 +121,10 @@ static void calculateDive(struct dive *dive, Stats &stats)
return;
}
if (dive->invalid) {
return;
}
// one more real dive
stats.dives++;