From 3263d1a79209992f08fb0b8c529c78666696bcc6 Mon Sep 17 00:00:00 2001 From: wonder Date: Wed, 8 Oct 2008 22:14:47 +0000 Subject: [PATCH] Fix for #670 from Vita Cizek... thanks! git-svn-id: http://svn.osgeo.org/qgis/trunk@9462 c8812cc2-4d05-0410-92ff-de0c093fc19c --- CONTRIBUTORS | 1 + src/providers/wms/qgswmsprovider.cpp | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CONTRIBUTORS b/CONTRIBUTORS index ae54559efd1..6c31d42b354 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -26,3 +26,4 @@ Tom Russo Tyler Mitchell Yann Chemin Marco Pasetti +Vita Cizek diff --git a/src/providers/wms/qgswmsprovider.cpp b/src/providers/wms/qgswmsprovider.cpp index 46bf54b0871..536dc21ae24 100644 --- a/src/providers/wms/qgswmsprovider.cpp +++ b/src/providers/wms/qgswmsprovider.cpp @@ -376,8 +376,9 @@ QImage* QgsWmsProvider::draw( QgsRect const & viewExtent, int pixelWidth, int p crsKey = "CRS"; } - QString url = baseUrl; + QString url = mCapabilities.capability.request.getMap.dcpType.front().http.get.onlineResource.xlinkHref; + url += "?"; url += "SERVICE=WMS"; url += "&"; url += "VERSION=" + mCapabilities.version;