Skip to content
Permalink
Browse files

Fix last equal interval break in graduated symbol renderer (#4044)

  • Loading branch information
wonder-sk committed Jul 4, 2011
1 parent 1043c03 commit 88a2a625b55b943f527672b6814f2bb6ac799ae8
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/core/symbology-ng/qgsgraduatedsymbolrendererv2.cpp
@@ -306,6 +306,11 @@ static QList<double> _calcEqualIntervalBreaks( double minimum, double maximum, i
value += step;
breaks.append( value );
}

// floating point arithmetics is not precise:
// set the last break to be exactly maximum so we do not miss it
breaks[classes-1] = maximum;

return breaks;
}

0 comments on commit 88a2a62

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