Skip to content

Commit 631a7fd

Browse files
committedMar 29, 2016
WMS provider with Qt5 sends STYLES=& instead of STYLES&
1 parent ad8ee31 commit 631a7fd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎src/providers/wms/qgswmsprovider.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,9 @@ QImage *QgsWmsProvider::draw( QgsRectangle const &viewExtent, int pixelWidth, in
501501
}
502502

503503
QString layers = visibleLayers.join( "," );
504+
layers = layers.isNull() ? "" : layers;
504505
QString styles = visibleStyles.join( "," );
506+
styles = styles.isNull() ? "" : styles;
505507

506508
QgsDebugMsg( "Visible layer list of " + layers + " and style list of " + styles );
507509

0 commit comments

Comments
 (0)
Please sign in to comment.