Do not show lack of coordinates as having same gps information
The filter that takes care to show the dive sites that have the same gps information should not take into account dives that have no gps information. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
e500a9dea8
commit
d611d97406
@ -198,5 +198,8 @@ bool filter_same_gps_cb (QAbstractItemModel *model, int sourceRow, const QModelI
|
||||
if (!ds)
|
||||
return false;
|
||||
|
||||
if (ds->latitude.udeg == 0 || ds->longitude.udeg == 0)
|
||||
return false;
|
||||
|
||||
return (ds->latitude.udeg == ref_lat && ds->longitude.udeg == ref_lon && ds->uuid != ref_uuid);
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user