Navigation Menu

Skip to content

Commit

Permalink
Bands are 1-indexed
Browse files Browse the repository at this point in the history
  • Loading branch information
carolinux committed Jun 23, 2015
1 parent 45681e6 commit 5f2c8e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/raster/qgssinglebandpseudocolorrenderer.cpp
Expand Up @@ -40,7 +40,7 @@ QgsSingleBandPseudoColorRenderer::~QgsSingleBandPseudoColorRenderer()

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

0 comments on commit 5f2c8e0

Please sign in to comment.