mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +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;
|
||||
}
|
||||
|
||||
if (dive->invalid) {
|
||||
return;
|
||||
}
|
||||
|
||||
// one more real dive
|
||||
stats.dives++;
|
||||
|
||||
|
|
Loading…
Reference in a new issue