From 4cdbe25ea3bb0bf852c2e164a418b9e2bb681aad Mon Sep 17 00:00:00 2001 From: Jacob Christie <19879272+jjatie@users.noreply.github.com> Date: Tue, 26 Jan 2021 08:19:26 -0400 Subject: [PATCH] Fixed incorrect guard return statement when rendering limit lines --- Source/Charts/Renderers/YAxisRenderer.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Charts/Renderers/YAxisRenderer.swift b/Source/Charts/Renderers/YAxisRenderer.swift index 1f5014c1d7..e1d8bf65f5 100644 --- a/Source/Charts/Renderers/YAxisRenderer.swift +++ b/Source/Charts/Renderers/YAxisRenderer.swift @@ -293,7 +293,7 @@ open class YAxisRenderer: NSObject, AxisRenderer let label = l.label // if drawing the limit-value label is enabled - guard l.drawLabelEnabled, !label.isEmpty else { return } + guard l.drawLabelEnabled, !label.isEmpty else { continue } let labelLineHeight = l.valueFont.lineHeight