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:
Dirk Hohndel 2014-07-30 09:46:21 -07:00
parent 74d89fc818
commit 8d75de5d32

View file

@ -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 */