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,"