mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
18c0fa37d1
commit
f3a02d7049
1 changed files with 4 additions and 0 deletions
|
@ -121,6 +121,10 @@ static void calculateDive(struct dive *dive, Stats &stats)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (dive->invalid) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// one more real dive
|
// one more real dive
|
||||||
stats.dives++;
|
stats.dives++;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue