Skip to content
Permalink
Browse files

Bands are 1-indexed

  • Loading branch information
carolinux committed Jun 23, 2015
1 parent 45681e6 commit 5f2c8e08e26b2c54af7202c7a8eb2fc765a2c031
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/raster/qgssinglebandpseudocolorrenderer.cpp
@@ -40,7 +40,7 @@ QgsSingleBandPseudoColorRenderer::~QgsSingleBandPseudoColorRenderer()

void QgsSingleBandPseudoColorRenderer::setBand(int bandNo)
{
if ( bandNo>=mInput->bandCount() || bandNo<0 )
if ( bandNo>mInput->bandCount() || bandNo<=0 )
{
return;
}

0 comments on commit 5f2c8e0

Please sign in to comment.
You can’t perform that action at this time.