mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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
1 changed files with 3 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue