Skip to content
Permalink
Browse files

compute the correct number of categories using Pretty Breaks mode (fix

  • Loading branch information
brushtyler committed Oct 1, 2012
1 parent 495246f commit 9d8b9fcb38eb6f0b3177967bc9de7460a91a0a36
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/core/symbology-ng/qgsgraduatedsymbolrendererv2.cpp
@@ -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++ )
{

0 comments on commit 9d8b9fc

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