mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Correctly report parsing success for GPS data
There was at least one code flow where the parsed output parameter wasn't set to true, even though nothing was wrong with the coordinates. Fixes #592 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
74d89fc818
commit
8d75de5d32
1 changed files with 1 additions and 1 deletions
|
@ -172,7 +172,7 @@ bool gpsHasChanged(struct dive *dive, struct dive *master, const QString &gps_te
|
|||
int latudeg, longudeg;
|
||||
bool ignore;
|
||||
bool *parsed = parsed_out ?: &ignore;
|
||||
|
||||
*parsed = true;
|
||||
|
||||
/* if we have a master and the dive's gps address is different from it,
|
||||
* don't change the dive */
|
||||
|
|
Loading…
Add table
Reference in a new issue