mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Fix a crash when dive date is epoch
With a dive that's date is 1970-01-01, starting at 00:00 the assert causes subsurface to crash when performing auto grouping. This happens to be a perfectly valid date, and we might end up getting such dates when importing dives from other software, so removing the assert. Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
ddd0523bb4
commit
c2b076548d
1 changed files with 0 additions and 1 deletions
|
@ -655,7 +655,6 @@ void add_dive_to_trip(struct dive *dive, dive_trip_t *trip)
|
|||
{
|
||||
if (dive->divetrip == trip)
|
||||
return;
|
||||
assert(trip->when);
|
||||
remove_dive_from_trip(dive, false);
|
||||
trip->nrdives++;
|
||||
dive->divetrip = trip;
|
||||
|
|
Loading…
Add table
Reference in a new issue