mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Allow merging of dives with zero depth/duration
Fixes #1003 Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
545b106d5c
commit
24e2f83d67
1 changed files with 3 additions and 0 deletions
|
@ -2162,6 +2162,9 @@ static int find_sample_offset(struct divecomputer *a, struct divecomputer *b)
|
||||||
*/
|
*/
|
||||||
static int similar(unsigned long a, unsigned long b, unsigned long expected)
|
static int similar(unsigned long a, unsigned long b, unsigned long expected)
|
||||||
{
|
{
|
||||||
|
if (!a && !b)
|
||||||
|
return 1;
|
||||||
|
|
||||||
if (a && b) {
|
if (a && b) {
|
||||||
unsigned long min, max, diff;
|
unsigned long min, max, diff;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue