From 917ce5aff50370e7dc4805920a4f5eec09884bb3 Mon Sep 17 00:00:00 2001 From: g1g19 Date: Mon, 3 Mar 2014 22:31:13 +0530 Subject: Fix gps parsing The argument index used to pull in the translated hemisphere letters was incorrect. Fixes #418 Signed-off-by: Gopichand Paturi Signed-off-by: Dirk Hohndel --- qthelper.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qthelper.cpp b/qthelper.cpp index 352d3c4bd..8ad85402a 100644 --- a/qthelper.cpp +++ b/qthelper.cpp @@ -136,7 +136,7 @@ bool parseGpsText(const QString &gps_text, double *latitude, double *longitude) } else if (gps_text.count(QChar('"')) == 2) { gpsStyle = SECONDS; regExp = QString("\\s*([NS%1%2])\\s*(\\d+)[" UTF8_DEGREE "\\s]+(\\d+)[\'\\s]+(\\d+)([,\\.](\\d+))?[^EW%3%4]*" - "([EW%6%7])\\s*(\\d+)[" UTF8_DEGREE "\\s]+(\\d+)[\'\\s]+(\\d+)([,\\.](\\d+))?") + "([EW%5%6])\\s*(\\d+)[" UTF8_DEGREE "\\s]+(\\d+)[\'\\s]+(\\d+)([,\\.](\\d+))?") .arg(tr("N")) .arg(tr("S")) .arg(tr("E")) @@ -146,7 +146,7 @@ bool parseGpsText(const QString &gps_text, double *latitude, double *longitude) } else if (gps_text.count(QChar('\'')) == 2) { gpsStyle = MINUTES; regExp = QString("\\s*([NS%1%2])\\s*(\\d+)[" UTF8_DEGREE "\\s]+(\\d+)([,\\.](\\d+))?[^EW%3%4]*" - "([EW%6%7])\\s*(\\d+)[" UTF8_DEGREE "\\s]+(\\d+)([,\\.](\\d+))?") + "([EW%5%6])\\s*(\\d+)[" UTF8_DEGREE "\\s]+(\\d+)([,\\.](\\d+))?") .arg(tr("N")) .arg(tr("S")) .arg(tr("E")) -- cgit v1.2.3-70-g09d2