Skip to content
Permalink
Browse files

forgot cast to double on divide

  • Loading branch information
pierstitus authored and nyalldawson committed Apr 13, 2016
1 parent 7914987 commit 4fed5667b29d39f49152fbb2e40109fa2dfb8042
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/gui/raster/qgssinglebandpseudocolorrendererwidget.cpp
@@ -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)

0 comments on commit 4fed566

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