Skip to content

Commit

Permalink
forgot cast to double on divide
Browse files Browse the repository at this point in the history
  • Loading branch information
pierstitus authored and nyalldawson committed Jun 2, 2016
1 parent 7914987 commit 4fed566
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/raster/qgssinglebandpseudocolorrendererwidget.cpp
Expand Up @@ -383,7 +383,7 @@ void QgsSingleBandPseudoColorRendererWidget::on_mClassifyButton_clicked()
{
// if color ramp is continuous scale values to get equally distributed classes.
// Doesn't work perfectly when stops are non equally distributed.
intervalDiff *= ( numberOfEntries - 1 ) / numberOfEntries;
intervalDiff *= ( numberOfEntries - 1 ) / ( double )numberOfEntries;
}

// skip first value (always 0.0)
Expand Down

0 comments on commit 4fed566

Please sign in to comment.