Skip to content

Commit

Permalink
Merge pull request jverkoey#429 from jverkoey/graph_view
Browse files Browse the repository at this point in the history
[NIOverviewGraphView] Guard against zero x/y ranges to prevent runtime assertions on iOS 7.
  • Loading branch information
ynie committed Aug 23, 2013
2 parents 697d0f4 + 41ba4a1 commit b81af50
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/overview/src/NIOverviewGraphView.m
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ - (void)drawGraphWithContext:(CGContextRef)context {

CGFloat xRange = [self.dataSource graphViewXRange:self];
CGFloat yRange = [self.dataSource graphViewYRange:self];
if (xRange == 0 || yRange == 0) {
return;
}

[self.dataSource resetPointIterator];

Expand Down

0 comments on commit b81af50

Please sign in to comment.