summaryrefslogtreecommitdiffstats
path: root/qthelper.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-07-30 09:46:21 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-07-30 09:46:21 -0700
commit8d75de5d321bac760fdbda3987e867d3e5b980bc (patch)
treefc96bd3d6a5e97f61581993fc169f8ccf26865f3 /qthelper.cpp
parent74d89fc818a17bccec81d4b1a868a82d38518b55 (diff)
downloadsubsurface-8d75de5d321bac760fdbda3987e867d3e5b980bc.tar.gz
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>
Diffstat (limited to 'qthelper.cpp')
-rw-r--r--qthelper.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qthelper.cpp b/qthelper.cpp
index c89c8d0e4..98fa785a1 100644
--- a/qthelper.cpp
+++ b/qthelper.cpp
@@ -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 */