Navigation Menu

Skip to content

Commit

Permalink
fix #5333
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Apr 9, 2012
1 parent d1a11be commit 95045f8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/core/symbology-ng/qgsgraduatedsymbolrendererv2.cpp
Expand Up @@ -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;
Expand All @@ -562,6 +565,7 @@ static QList<double> _calcPrettyBreaks( double minimum, double maximum, int clas
{
breaks[breaks.count()-1] = maximum;
}

return breaks;
} // _calcPrettyBreaks

Expand Down

0 comments on commit 95045f8

Please sign in to comment.