Skip to content
Permalink
Browse files
fix #5333
  • Loading branch information
jef-n committed Apr 9, 2012
1 parent d1a11be commit 95045f86f71b8b102a5301bb44be0f33304ad966
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/core/symbology-ng/qgsgraduatedsymbolrendererv2.cpp
@@ -554,6 +554,9 @@ static QList<double> _calcPrettyBreaks( double minimum, double maximum, int clas
breaks.append( minimumBreak + i * unit );
}

if ( breaks.isEmpty() )
return breaks;

if ( breaks.first() < minimum )
{
breaks[0] = minimum;
@@ -562,6 +565,7 @@ static QList<double> _calcPrettyBreaks( double minimum, double maximum, int clas
{
breaks[breaks.count()-1] = maximum;
}

return breaks;
} // _calcPrettyBreaks

0 comments on commit 95045f8

Please sign in to comment.