From 7ffdf6d9da85562ce69c6cfe21ea144cf70ecc9d Mon Sep 17 00:00:00 2001 From: Terry Worona Date: Thu, 7 Aug 2014 13:30:48 -0700 Subject: [PATCH] Fixed issue #83 --- Classes/JBLineChartView.m | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Classes/JBLineChartView.m b/Classes/JBLineChartView.m index 4c0ce2b4..fe01e8b0 100755 --- a/Classes/JBLineChartView.m +++ b/Classes/JBLineChartView.m @@ -437,13 +437,17 @@ static UIColor *kJBLineChartViewDefaultDotSelectionColor = nil; lineWidth = [self.delegate lineChartView:self widthForLineAtLineIndex:lineIndex]; } - CGFloat dotRadius = lineWidth * kJBLineChartDotsViewDefaultRadiusFactor; // default + CGFloat dotRadius = 0; if (showsDots) { if ([self.delegate respondsToSelector:@selector(lineChartView:dotRadiusForLineAtLineIndex:)]) { dotRadius = [self.delegate lineChartView:self dotRadiusForLineAtLineIndex:lineIndex]; } + else + { + dotRadius = lineWidth * kJBLineChartDotsViewDefaultRadiusFactor; // default + } } CGFloat currentMaxLineWidth = MAX(dotRadius, lineWidth);