Skip to content

Commit 9d4ab51

Browse files
committedOct 31, 2017
Clear WMS preview image
1 parent fde6240 commit 9d4ab51

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed
 

‎src/providers/wms/qgswmsprovider.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -616,6 +616,7 @@ static void _drawDebugRect( QPainter& p, const QRectF& rect, const QColor& color
616616
QImage *QgsWmsProvider::draw( QgsRectangle const & viewExtent, int pixelWidth, int pixelHeight, QgsRasterBlockFeedback* feedback )
617617
{
618618
QImage* image = new QImage( pixelWidth, pixelHeight, QImage::Format_ARGB32 );
619+
image->fill( 0 );
619620

620621
if ( QgsApplication::instance()->thread() == QThread::currentThread() )
621622
{
@@ -624,9 +625,6 @@ QImage *QgsWmsProvider::draw( QgsRectangle const & viewExtent, int pixelWidth, i
624625
}
625626

626627
// compose the URL query string for the WMS server.
627-
628-
image->fill( 0 );
629-
630628
if ( !mSettings.mTiled && mSettings.mMaxWidth == 0 && mSettings.mMaxHeight == 0 )
631629
{
632630
QUrl url = createRequestUrlWMS( viewExtent, pixelWidth, pixelHeight );

0 commit comments

Comments
 (0)
Please sign in to comment.