Skip to content

Commit

Permalink
fix ChartsOrg#1702. Continue while checking top fails, break if check…
Browse files Browse the repository at this point in the history
…ing bottom fails

Similar to Bar chart renderer logic, continue if checking left fails, while break if checking right fails
  • Loading branch information
liuxuan30 committed Oct 26, 2016
1 parent 8ef870a commit 386c277
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/Charts/Renderers/HorizontalBarChartRenderer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -248,12 +248,12 @@ open class HorizontalBarChartRenderer: BarChartRenderer

if (!viewPortHandler.isInBoundsTop(barRect.origin.y + barRect.size.height))
{
break
continue
}

if (!viewPortHandler.isInBoundsBottom(barRect.origin.y))
{
continue
break
}

if !isSingleColor
Expand Down

0 comments on commit 386c277

Please sign in to comment.