Skip to content
Permalink
Browse files

Make sure classifying color ramps for rasters uses the full range of …

…the ramp
  • Loading branch information
nyalldawson committed May 19, 2013
1 parent ff41a1d commit 95b9d3802f6cfadefdf723209f5edb364de91935
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/gui/raster/qgssinglebandpseudocolorrendererwidget.cpp
@@ -319,7 +319,7 @@ void QgsSingleBandPseudoColorRendererWidget::on_mClassifyButton_clicked()
for ( int i = 0; i < numberOfEntries; ++i )
{
int idx = mInvertCheckBox->isChecked() ? numberOfEntries - i - 1 : i;
entryColors.push_back( colorRamp->color((( double ) idx ) / numberOfEntries ) );
entryColors.push_back( colorRamp->color((( double ) idx ) / ( numberOfEntries - 1 ) ) );
}
}

0 comments on commit 95b9d38

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