Fixed: level indicator warning and critical level ranges should be inclusive.

This commit is contained in:
Alexander Ljungberg authored and Klaas Pieter Annema committed 2011-07-07 16:04:11 +02:00
1 parent 110d4c478d
commit 63b00186f4
1 file changed
+2 -2
+2 -2
View File
@@ -149,9 +149,9 @@ var _CPLevelIndicatorBezelColor = nil,
var filledColor = _CPLevelIndicatorSegmentNormalColor,
value = [self doubleValue];
if (value < _criticalValue)
if (value <= _criticalValue)
filledColor = _CPLevelIndicatorSegmentCriticalColor;
else if (value < _warningValue)
else if (value <= _warningValue)
filledColor = _CPLevelIndicatorSegmentWarningColor;
for (var i = 0; i < segmentCount; i++)