Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Initialise band count to 0 in raster constructor for WMS layers. Fixe…
…s bug #1803

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@11201 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Jul 29, 2009
1 parent 8e68ed8 commit 7e6cde1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/raster/qgsrasterlayer.cpp
Expand Up @@ -180,6 +180,7 @@ QgsRasterLayer::QgsRasterLayer( int dummy,
layers.join( ", " ) + " and style list of " + styles.join( ", " ) + " and format of " +
format + " and CRS of " + crs );

mBandCount = 0;
mRasterShader = new QgsRasterShader();

// Initialise the affine transform matrix
Expand Down

0 comments on commit 7e6cde1

Please sign in to comment.