Skip to content

Commit

Permalink
Fix problem #340
Browse files Browse the repository at this point in the history
Fix problem #340
  • Loading branch information
WenchaoD committed Jun 29, 2016
1 parent 6aabe25 commit c6d932b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion FSCalendar/FSCalendarEventIndicator.m
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ - (void)layoutSublayersOfLayer:(CALayer *)layer
NSArray *colors = (NSArray *)_color;
if (colors.count) {
UIColor *lastColor = colors.firstObject;
for (int i = 0; i < self.numberOfEvents; i++) {
for (int i = 0; i < self.eventLayers.count; i++) {
if (i < colors.count) {
lastColor = colors[i];
}
Expand Down

0 comments on commit c6d932b

Please sign in to comment.