Skip to content

Commit

Permalink
fix segfaults due to off-by-one error checking bands (band numbers st…
Browse files Browse the repository at this point in the history
…art from 1)
  • Loading branch information
brushtyler committed Jul 15, 2012
1 parent d5e8745 commit 74c0122
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/raster/qgsrasterrendererwidget.cpp
Expand Up @@ -55,7 +55,7 @@ bool QgsRasterRendererWidget::bandMinMax( LoadMinMaxAlgo loadAlgo, int band, dou
{
return false;
}
if ( band < 0 )
if ( band <= 0 )
{
return false;
}
Expand Down

0 comments on commit 74c0122

Please sign in to comment.