Skip to content

Commit

Permalink
Merge pull request #4 from arturgrigor/master
Browse files Browse the repository at this point in the history
Quick fix for incorrect rating display.
  • Loading branch information
danwilliams64 committed Aug 11, 2014
2 parents 91f51d2 + 9e82dd8 commit 4af610b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DJWStarRatingView/DJWStarRatingView.m
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ - (CGFloat)fillPercentageForStarNumber:(NSInteger)starNumber
float star = (float)starNumber + 1;
if (star <= self.rating) {
return 1.0;
} else if ((float)(star - 0.5) == self.rating) {
} else if ((float)(star - 0.5) <= self.rating) {
return 0.5;
} else {
return 0;
Expand Down

0 comments on commit 4af610b

Please sign in to comment.