Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Clear WMS preview image
- Loading branch information
Showing
with
1 addition
and
3 deletions.
-
+1
−3
src/providers/wms/qgswmsprovider.cpp
|
@@ -616,6 +616,7 @@ static void _drawDebugRect( QPainter& p, const QRectF& rect, const QColor& color |
|
|
QImage *QgsWmsProvider::draw( QgsRectangle const & viewExtent, int pixelWidth, int pixelHeight, QgsRasterBlockFeedback* feedback ) |
|
|
{ |
|
|
QImage* image = new QImage( pixelWidth, pixelHeight, QImage::Format_ARGB32 ); |
|
|
image->fill( 0 ); |
|
|
|
|
|
if ( QgsApplication::instance()->thread() == QThread::currentThread() ) |
|
|
{ |
|
@@ -624,9 +625,6 @@ QImage *QgsWmsProvider::draw( QgsRectangle const & viewExtent, int pixelWidth, i |
|
|
} |
|
|
|
|
|
// compose the URL query string for the WMS server. |
|
|
|
|
|
image->fill( 0 ); |
|
|
|
|
|
if ( !mSettings.mTiled && mSettings.mMaxWidth == 0 && mSettings.mMaxHeight == 0 ) |
|
|
{ |
|
|
QUrl url = createRequestUrlWMS( viewExtent, pixelWidth, pixelHeight ); |
|
|
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.