From fbc627aeedaa6ecb9cda8e79520998191daebf88 Mon Sep 17 00:00:00 2001 From: zedamota Date: Tue, 13 Jul 2010 13:56:23 +0000 Subject: [PATCH] OP37/GCS Fixed GeoCoder caching git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1084 ebee16cc-31ac-478f-84a7-5cbb03baadba --- ground/src/libs/opmapcontrol/src/core/urlfactory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ground/src/libs/opmapcontrol/src/core/urlfactory.cpp b/ground/src/libs/opmapcontrol/src/core/urlfactory.cpp index 11657546b..484cb006d 100644 --- a/ground/src/libs/opmapcontrol/src/core/urlfactory.cpp +++ b/ground/src/libs/opmapcontrol/src/core/urlfactory.cpp @@ -577,7 +577,7 @@ internals::PointLatLng UrlFactory::GetLatLngFromGeocoderUrl(const QString &url, #endif //DEBUG_URLFACTORY status = GeoCoderStatusCode::Unknow; internals::PointLatLng ret(0,0); - QString urlEnd = url.right(url.indexOf("geo?q=")); + QString urlEnd = url.mid(url.indexOf("geo?q=")+6); urlEnd.replace( QRegExp( "[^" "A-Z,a-z,0-9,"