diff options
Diffstat (limited to 'qthelper.cpp')
-rw-r--r-- | qthelper.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qthelper.cpp b/qthelper.cpp index a05de95f1..0354a6031 100644 --- a/qthelper.cpp +++ b/qthelper.cpp @@ -190,7 +190,7 @@ static bool parseCoord(const QString& txt, int& pos, const QString& positives, * Parse special coordinate formats that cannot be handled by parseCoord. */ static bool parseSpecialCoords(const QString& txt, double& latitude, double& longitude) { - QRegExp xmlFormat("(-?\\d+(?:\\.\\d+)?)\\s+(-?\\d+(?:\\.\\d+)?)"); + QRegExp xmlFormat("(-?\\d+(?:\\.\\d+)?),?\\s+(-?\\d+(?:\\.\\d+)?)"); if (xmlFormat.exactMatch(txt)) { latitude = xmlFormat.cap(1).toDouble(); longitude = xmlFormat.cap(2).toDouble(); |