Skip to content

Commit 88a2a62

Browse files
committedJul 4, 2011
Fix last equal interval break in graduated symbol renderer (#4044)
1 parent 1043c03 commit 88a2a62

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
 

‎src/core/symbology-ng/qgsgraduatedsymbolrendererv2.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,11 @@ static QList<double> _calcEqualIntervalBreaks( double minimum, double maximum, i
306306
value += step;
307307
breaks.append( value );
308308
}
309+
310+
// floating point arithmetics is not precise:
311+
// set the last break to be exactly maximum so we do not miss it
312+
breaks[classes-1] = maximum;
313+
309314
return breaks;
310315
}
311316

0 commit comments

Comments
 (0)
Please sign in to comment.