Skip to content

Commit 7e6cde1

Browse files
author
mhugent
committed
Initialise band count to 0 in raster constructor for WMS layers. Fixes bug #1803
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@11201 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 8e68ed8 commit 7e6cde1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/core/raster/qgsrasterlayer.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ QgsRasterLayer::QgsRasterLayer( int dummy,
180180
layers.join( ", " ) + " and style list of " + styles.join( ", " ) + " and format of " +
181181
format + " and CRS of " + crs );
182182

183+
mBandCount = 0;
183184
mRasterShader = new QgsRasterShader();
184185

185186
// Initialise the affine transform matrix

0 commit comments

Comments
 (0)