Skip to content

Commit

Permalink
Make sure classifying color ramps for rasters uses the full range of …
Browse files Browse the repository at this point in the history
…the ramp
  • Loading branch information
nyalldawson committed May 19, 2013
1 parent ff41a1d commit 95b9d38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/raster/qgssinglebandpseudocolorrendererwidget.cpp
Expand Up @@ -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 ) ) );
}
}

Expand Down

0 comments on commit 95b9d38

Please sign in to comment.