Skip to content

Commit

Permalink
compute the correct number of categories using Pretty Breaks mode (fix
Browse files Browse the repository at this point in the history
  • Loading branch information
brushtyler committed Oct 1, 2012
1 parent 495246f commit 9d8b9fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/symbology-ng/qgsgraduatedsymbolrendererv2.cpp
Expand Up @@ -553,8 +553,8 @@ static QList<double> _calcPrettyBreaks( double minimum, double maximum, int clas
divisions = k;
}
double minimumBreak = start * unit;
double maximumBreak = end * unit;
int count = ceil( maximumBreak - minimumBreak ) / unit;
//double maximumBreak = end * unit;
int count = end - start;

for ( int i = 1; i < count + 1; i++ )
{
Expand Down

0 comments on commit 9d8b9fc

Please sign in to comment.