Skip to content
Permalink
Browse files

fix segfaults due to off-by-one error checking bands (band numbers st…

…art from 1)
  • Loading branch information
brushtyler committed Jul 15, 2012
1 parent d5e8745 commit 74c0122153ef14b9034086af929b66413a5d8a2f
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/gui/raster/qgsrasterrendererwidget.cpp
@@ -55,7 +55,7 @@ bool QgsRasterRendererWidget::bandMinMax( LoadMinMaxAlgo loadAlgo, int band, dou
{
return false;
}
if ( band < 0 )
if ( band <= 0 )
{
return false;
}

0 comments on commit 74c0122

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