diff --git a/OVGraphView/OVGraphView/OVGraphPlotView.m b/OVGraphView/OVGraphView/OVGraphPlotView.m index a6f2621..b86993a 100644 --- a/OVGraphView/OVGraphView/OVGraphPlotView.m +++ b/OVGraphView/OVGraphView/OVGraphPlotView.m @@ -129,7 +129,7 @@ - (void)drawRect:(CGRect)rect{ int prevxpoint=0; int prevypoint=0; int i=0; - if (_plotpoints!=nil) { + if (_plotpoints!=nil && [_plotpoints count] > 0) { for (OVGraphViewPoint *point in _plotpoints) { int xpoint; int ypoint;