Skip to content

Commit 3d3e017

Browse files
authored
Fixed incorrect guard return statement when rendering limit lines (ChartsOrg#4563)
1 parent 931ebe8 commit 3d3e017

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/Charts/Renderers/YAxisRenderer.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ open class YAxisRenderer: NSObject, AxisRenderer
293293
let label = l.label
294294

295295
// if drawing the limit-value label is enabled
296-
guard l.drawLabelEnabled, !label.isEmpty else { return }
296+
guard l.drawLabelEnabled, !label.isEmpty else { continue }
297297

298298
let labelLineHeight = l.valueFont.lineHeight
299299

0 commit comments

Comments
 (0)